@coveo/quantic 3.17.1-pre.e71f7b47c3 → 3.17.1
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/api/knowledge/stream-answer-api.d.ts +30 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/core-engine.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/engine.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/types/core-engine.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/store.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/thunk-extra-arguments.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/case-assist.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/advanced-search-queries/advanced-search-query-selectors.d.ts +66 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/base-commerce-api-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/filterable-commerce-api-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/paginated-commerce-api-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-search-set/category/commerce-category-facet-search-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-search-set/regular/commerce-regular-facet-search-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/query-suggest/query-suggest-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/plan-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/analytics-params.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/document-suggestion/document-suggestion-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-search-set/category/category-facet-search-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-search-set/specific/specific-facet-search-request-builder.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query-suggest/query-suggest-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions.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/features/search-and-folding/search-and-folding-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/standalone-search-box-set/standalone-search-box-set-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/insight.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/recommendation.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-navigator-context-provider.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -10
- 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 +3 -3
- /package/force-app/main/default/staticresources/coveoheadless/definitions/app/{navigatorContextProvider.d.ts → navigator-context-provider.d.ts} +0 -0
|
@@ -75,13 +75,43 @@ export declare const constructAnswerQueryParams: (state: StateNeededByAnswerAPI,
|
|
|
75
75
|
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;
|
|
76
76
|
pipeline?: string | undefined;
|
|
77
77
|
searchHub?: string | undefined;
|
|
78
|
+
pipelineRuleParameters: {
|
|
79
|
+
mlGenerativeQuestionAnswering: {
|
|
80
|
+
responseFormat: import("../../features/generated-answer/generated-response-format.js").GeneratedResponseFormat;
|
|
81
|
+
citationsFieldToInclude: string[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
aq?: undefined;
|
|
85
|
+
cq?: undefined;
|
|
86
|
+
dq?: undefined;
|
|
87
|
+
lq?: undefined;
|
|
78
88
|
q: string | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
tab: string;
|
|
91
|
+
numberOfResults?: number | undefined;
|
|
92
|
+
firstResult?: number | undefined;
|
|
93
|
+
queryCorrection?: {
|
|
94
|
+
enabled: boolean;
|
|
95
|
+
options: {
|
|
96
|
+
automaticallyCorrect: "never" | "whenNoResults";
|
|
97
|
+
};
|
|
98
|
+
} | undefined;
|
|
99
|
+
enableDidYouMean?: boolean | undefined;
|
|
100
|
+
fieldsToInclude?: string[] | undefined;
|
|
101
|
+
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;
|
|
102
|
+
pipeline?: string | undefined;
|
|
103
|
+
searchHub?: string | undefined;
|
|
79
104
|
pipelineRuleParameters: {
|
|
80
105
|
mlGenerativeQuestionAnswering: {
|
|
81
106
|
responseFormat: import("../../features/generated-answer/generated-response-format.js").GeneratedResponseFormat;
|
|
82
107
|
citationsFieldToInclude: string[];
|
|
83
108
|
};
|
|
84
109
|
};
|
|
110
|
+
aq: string;
|
|
111
|
+
cq: string;
|
|
112
|
+
dq: string;
|
|
113
|
+
lq: string;
|
|
114
|
+
q: string | undefined;
|
|
85
115
|
};
|
|
86
116
|
export declare const fetchAnswer: (state: StateNeededByAnswerAPI) => 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>;
|
|
87
117
|
export declare const selectAnswer: (state: StateNeededByAnswerAPI) => ({
|
|
@@ -2,6 +2,10 @@ import { StateNeededByAnswerAPI } from '../stream-answer-api.js';
|
|
|
2
2
|
export declare const streamAnswerAPIStateMock: StateNeededByAnswerAPI;
|
|
3
3
|
export declare const expectedStreamAnswerAPIParam: {
|
|
4
4
|
q: string;
|
|
5
|
+
aq: string;
|
|
6
|
+
cq: string;
|
|
7
|
+
dq: string;
|
|
8
|
+
lq: string;
|
|
5
9
|
pipelineRuleParameters: {
|
|
6
10
|
mlGenerativeQuestionAnswering: {
|
|
7
11
|
responseFormat: {
|
|
@@ -2,7 +2,7 @@ import { UnknownAction } from '@reduxjs/toolkit';
|
|
|
2
2
|
import type { Controller } from '../../../controllers/controller/headless-controller.js';
|
|
3
3
|
import { CommerceEngineDefinition } from '../../commerce-engine/commerce-engine.ssr.js';
|
|
4
4
|
import { EngineConfiguration } from '../../engine-configuration.js';
|
|
5
|
-
import { NavigatorContextProvider } from '../../
|
|
5
|
+
import { NavigatorContextProvider } from '../../navigator-context-provider.js';
|
|
6
6
|
import type { FromBuildResultOptions } from '../../ssr-engine/types/from-build-result.js';
|
|
7
7
|
import { SSRCommerceEngine } from '../factories/build-factory.js';
|
|
8
8
|
import { Build, BuildOptions } from './build.js';
|
|
@@ -5,7 +5,7 @@ import { ConfigurationState, CoreConfigurationState } from '../features/configur
|
|
|
5
5
|
import { SearchParametersState } from '../state/search-app-state.js';
|
|
6
6
|
import { EngineConfiguration } from './engine-configuration.js';
|
|
7
7
|
import { LoggerOptions } from './logger.js';
|
|
8
|
-
import { NavigatorContext, NavigatorContextProvider } from './
|
|
8
|
+
import { NavigatorContext, NavigatorContextProvider } from './navigator-context-provider.js';
|
|
9
9
|
import { stateKey } from './state-key.js';
|
|
10
10
|
import { CoreExtraArguments, Store } from './store.js';
|
|
11
11
|
import { ThunkExtraArguments } from './thunk-extra-arguments.js';
|
|
@@ -2,7 +2,7 @@ import { AnyAction } from '@reduxjs/toolkit';
|
|
|
2
2
|
import type { Controller } from '../../../controllers/controller/headless-controller.js';
|
|
3
3
|
import { EngineConfiguration } from '../../engine-configuration.js';
|
|
4
4
|
import { CoreEngine, CoreEngineNext } from '../../engine.js';
|
|
5
|
-
import { NavigatorContextProvider } from '../../
|
|
5
|
+
import { NavigatorContextProvider } from '../../navigator-context-provider.js';
|
|
6
6
|
import { Build } from './build.js';
|
|
7
7
|
import { ControllerDefinitionsMap, InferControllerPropsMapFromDefinitions, InferControllerStaticStateMapFromDefinitions, InferControllersMapFromDefinition } from './common.js';
|
|
8
8
|
import { FetchStaticState } from './fetch-static-state.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Relay } from '@coveo/relay';
|
|
2
2
|
import { ReducersMapObject, StateFromReducersMapObject, Middleware, Reducer } from '@reduxjs/toolkit';
|
|
3
|
-
import { NavigatorContext } from './
|
|
3
|
+
import { NavigatorContext } from './navigator-context-provider.js';
|
|
4
4
|
import { ThunkExtraArguments } from './thunk-extra-arguments.js';
|
|
5
5
|
export interface CoreExtraArguments extends ThunkExtraArguments, AdditionalCoreExtraArguments {
|
|
6
6
|
}
|
|
@@ -5,7 +5,7 @@ import { GeneratedAnswerAPIClient } from '../api/generated-answer/generated-answ
|
|
|
5
5
|
import { PreprocessRequest } from '../api/preprocess-request.js';
|
|
6
6
|
import { validatePayloadAndThrow } from '../utils/validate-payload.js';
|
|
7
7
|
import { EngineConfiguration } from './engine-configuration.js';
|
|
8
|
-
import { NavigatorContext } from './
|
|
8
|
+
import { NavigatorContext } from './navigator-context-provider.js';
|
|
9
9
|
export interface ClientThunkExtraArguments<T, K = GeneratedAnswerAPIClient> extends ThunkExtraArguments {
|
|
10
10
|
apiClient: T;
|
|
11
11
|
streamingClient?: K;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/case-assist.index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type { CoreEngine, ExternalEngineOptions } from './app/engine.js';
|
|
|
21
21
|
export type { EngineConfiguration, AnalyticsConfiguration, AnalyticsRuntimeEnvironment, } from './app/engine-configuration.js';
|
|
22
22
|
export type { LoggerOptions } from './app/logger.js';
|
|
23
23
|
export type { LogLevel } from './app/logger.js';
|
|
24
|
-
export type { NavigatorContext } from './app/
|
|
24
|
+
export type { NavigatorContext } from './app/navigator-context-provider.js';
|
|
25
25
|
export * from './features/case-input/case-input-actions-loader.js';
|
|
26
26
|
export * from './features/case-field/case-field-actions-loader.js';
|
|
27
27
|
export * from './features/document-suggestion/document-suggestion-actions-loader.js';
|
package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export { getSampleCommerceEngineConfiguration } from './app/commerce-engine/comm
|
|
|
28
28
|
export type { CoreEngine, ExternalEngineOptions, CoreEngineNext, } from './app/engine.js';
|
|
29
29
|
export type { EngineConfiguration, AnalyticsConfiguration, AnalyticsRuntimeEnvironment, } from './app/engine-configuration.js';
|
|
30
30
|
export type { LogLevel, LoggerOptions } from './app/logger.js';
|
|
31
|
-
export type { NavigatorContext } from './app/
|
|
31
|
+
export type { NavigatorContext } from './app/navigator-context-provider.js';
|
|
32
32
|
export type { BaseProduct, Product, ChildProduct, } from './api/commerce/common/product.js';
|
|
33
33
|
export type { PlatformEnvironment } from './utils/url-utils.js';
|
|
34
34
|
export * from './features/commerce/context/context-actions-loader.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AdvancedSearchQueriesState } from './advanced-search-queries-state.js';
|
|
2
|
+
export declare const selectAdvancedSearchQueries: ((state: {
|
|
3
|
+
advancedSearchQueries?: AdvancedSearchQueriesState;
|
|
4
|
+
}) => {
|
|
5
|
+
aq?: undefined;
|
|
6
|
+
cq?: undefined;
|
|
7
|
+
dq?: undefined;
|
|
8
|
+
lq?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
aq: string;
|
|
11
|
+
cq: string;
|
|
12
|
+
dq: string;
|
|
13
|
+
lq: string;
|
|
14
|
+
}) & {
|
|
15
|
+
clearCache: () => void;
|
|
16
|
+
resultsCount: () => number;
|
|
17
|
+
resetResultsCount: () => void;
|
|
18
|
+
} & {
|
|
19
|
+
resultFunc: (resultFuncArgs_0: AdvancedSearchQueriesState | undefined) => {
|
|
20
|
+
aq?: undefined;
|
|
21
|
+
cq?: undefined;
|
|
22
|
+
dq?: undefined;
|
|
23
|
+
lq?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
aq: string;
|
|
26
|
+
cq: string;
|
|
27
|
+
dq: string;
|
|
28
|
+
lq: string;
|
|
29
|
+
};
|
|
30
|
+
memoizedResultFunc: ((resultFuncArgs_0: AdvancedSearchQueriesState | undefined) => {
|
|
31
|
+
aq?: undefined;
|
|
32
|
+
cq?: undefined;
|
|
33
|
+
dq?: undefined;
|
|
34
|
+
lq?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
aq: string;
|
|
37
|
+
cq: string;
|
|
38
|
+
dq: string;
|
|
39
|
+
lq: string;
|
|
40
|
+
}) & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
resultsCount: () => number;
|
|
43
|
+
resetResultsCount: () => void;
|
|
44
|
+
};
|
|
45
|
+
lastResult: () => {
|
|
46
|
+
aq?: undefined;
|
|
47
|
+
cq?: undefined;
|
|
48
|
+
dq?: undefined;
|
|
49
|
+
lq?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
aq: string;
|
|
52
|
+
cq: string;
|
|
53
|
+
dq: string;
|
|
54
|
+
lq: string;
|
|
55
|
+
};
|
|
56
|
+
dependencies: [(state: {
|
|
57
|
+
advancedSearchQueries?: AdvancedSearchQueriesState;
|
|
58
|
+
}) => AdvancedSearchQueriesState | undefined];
|
|
59
|
+
recomputations: () => number;
|
|
60
|
+
resetRecomputations: () => void;
|
|
61
|
+
dependencyRecomputations: () => number;
|
|
62
|
+
resetDependencyRecomputations: () => void;
|
|
63
|
+
} & {
|
|
64
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
65
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
66
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommerceAPIRequest } from '../../../api/commerce/common/request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../app/navigator-context-provider.js';
|
|
3
3
|
import { CartSection, CommerceConfigurationSection, CommerceContextSection, VersionSection } from '../../../state/state-sections.js';
|
|
4
4
|
export type StateNeededForBaseCommerceAPIRequest = CommerceConfigurationSection & CommerceContextSection & CartSection & Partial<VersionSection>;
|
|
5
5
|
export declare const buildBaseCommerceAPIRequest: (state: StateNeededForBaseCommerceAPIRequest, navigatorContext: NavigatorContext) => BaseCommerceAPIRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterableCommerceAPIRequest } from '../../../api/commerce/common/request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../app/navigator-context-provider.js';
|
|
3
3
|
import { CommerceFacetSetSection, CommerceSortSection, FacetOrderSection, ManualRangeSection } from '../../../state/state-sections.js';
|
|
4
4
|
import { StateNeededForPaginatedCommerceAPIRequest } from './paginated-commerce-api-request-builder.js';
|
|
5
5
|
export type StateNeededForFilterableCommerceAPIRequest = StateNeededForPaginatedCommerceAPIRequest & Partial<CommerceSortSection & CommerceFacetSetSection & FacetOrderSection & ManualRangeSection>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginatedCommerceAPIRequest } from '../../../api/commerce/common/request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../app/navigator-context-provider.js';
|
|
3
3
|
import { CommercePaginationSection } from '../../../state/state-sections.js';
|
|
4
4
|
import { StateNeededForBaseCommerceAPIRequest } from './base-commerce-api-request-builder.js';
|
|
5
5
|
export type StateNeededForPaginatedCommerceAPIRequest = StateNeededForBaseCommerceAPIRequest & Partial<CommercePaginationSection>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CategoryFacetSearchRequest } from '../../../../../api/commerce/facet-search/facet-search-request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../../../app/navigator-context-provider.js';
|
|
3
3
|
import { StateNeededForCategoryFacetSearch } from './commerce-category-facet-search-state.js';
|
|
4
4
|
export declare const buildCategoryFacetSearchRequest: (facetId: string, state: StateNeededForCategoryFacetSearch, isFieldSuggestionsRequest: boolean, navigatorContext: NavigatorContext) => CategoryFacetSearchRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CommerceFacetSearchRequest } from '../../../../../api/commerce/facet-search/facet-search-request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../../../app/navigator-context-provider.js';
|
|
3
3
|
import { StateNeededForRegularFacetSearch } from './commerce-regular-facet-search-state.js';
|
|
4
4
|
export declare const buildFacetSearchRequest: (facetId: string, state: StateNeededForRegularFacetSearch, isFieldSuggestionsRequest: boolean, navigatorContext: NavigatorContext) => CommerceFacetSearchRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { QuerySuggestRequest } from '../../../api/commerce/search/query-suggest/query-suggest-request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../app/navigator-context-provider.js';
|
|
3
3
|
import { StateNeededByQuerySuggest } from './query-suggest-actions.js';
|
|
4
4
|
export declare const buildQuerySuggestRequest: (id: string, state: StateNeededByQuerySuggest, navigatorContext: NavigatorContext) => QuerySuggestRequest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageParam, PerPageParam, QueryParam } from '../../../api/commerce/commerce-api-params.js';
|
|
2
2
|
import { BaseCommerceAPIRequest } from '../../../api/commerce/common/request.js';
|
|
3
|
-
import { NavigatorContext } from '../../../app/
|
|
3
|
+
import { NavigatorContext } from '../../../app/navigator-context-provider.js';
|
|
4
4
|
import { CommerceQuerySection } from '../../../state/state-sections.js';
|
|
5
5
|
import { StateNeededForBaseCommerceAPIRequest } from '../common/base-commerce-api-request-builder.js';
|
|
6
6
|
export type StateNeededForPlanCommerceAPIRequest = StateNeededForBaseCommerceAPIRequest & CommerceQuerySection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDescription } from 'coveo.analytics';
|
|
2
2
|
import { AnalyticsParam } from '../../api/search/search-api-params.js';
|
|
3
|
-
import { NavigatorContext } from '../../app/
|
|
3
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
4
4
|
import { AnalyticsState } from './configuration-state.js';
|
|
5
5
|
export declare const fromAnalyticsStateToAnalyticsParams: (s: AnalyticsState, navigatorContext: NavigatorContext, eventDescription?: EventDescription) => AnalyticsParam;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetDocumentSuggestionsRequest } from '../../api/service/case-assist/get-document-suggestions/get-document-suggestions-request.js';
|
|
2
2
|
import { GetDocumentSuggestionsResponse } from '../../api/service/case-assist/get-document-suggestions/get-document-suggestions-response.js';
|
|
3
|
-
import { NavigatorContext } from '../../app/
|
|
3
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
4
4
|
import { CaseAssistConfigurationSection, DocumentSuggestionSection, ConfigurationSection, DebugSection, CaseInputSection, CaseFieldSection } from '../../state/state-sections.js';
|
|
5
5
|
export interface FetchDocumentSuggestionsThunkReturn {
|
|
6
6
|
/** The successful document suggestions response. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CategoryFacetSearchRequest } from '../../../../api/search/facet-search/category-facet-search/category-facet-search-request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../../app/navigator-context-provider.js';
|
|
3
3
|
import { StateNeededForCategoryFacetSearch } from '../generic/generic-facet-search-state.js';
|
|
4
4
|
export declare const buildCategoryFacetSearchRequest: (id: string, state: StateNeededForCategoryFacetSearch, navigatorContext: NavigatorContext, isFieldSuggestionsRequest: boolean) => Promise<CategoryFacetSearchRequest>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SpecificFacetSearchRequest } from '../../../../api/search/facet-search/specific-facet-search/specific-facet-search-request.js';
|
|
2
|
-
import { NavigatorContext } from '../../../../app/
|
|
2
|
+
import { NavigatorContext } from '../../../../app/navigator-context-provider.js';
|
|
3
3
|
import { StateNeededForSpecificFacetSearch } from '../generic/generic-facet-search-state.js';
|
|
4
4
|
export declare const buildSpecificFacetSearchRequest: (id: string, state: StateNeededForSpecificFacetSearch, navigatorContext: NavigatorContext, isFieldSuggestionsRequest: boolean) => Promise<SpecificFacetSearchRequest>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QuerySuggestRequest } from '../../api/search/query-suggest/query-suggest-request.js';
|
|
2
2
|
import { QuerySuggestSuccessResponse } from '../../api/search/query-suggest/query-suggest-response.js';
|
|
3
|
-
import { NavigatorContext } from '../../app/
|
|
3
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
4
4
|
import { ConfigurationSection, ContextSection, PipelineSection, QuerySetSection, QuerySuggestionSection, SearchHubSection } from '../../state/state-sections.js';
|
|
5
5
|
export type StateNeededByQuerySuggest = ConfigurationSection & QuerySuggestionSection & QuerySetSection & Partial<ContextSection & PipelineSection & SearchHubSection>;
|
|
6
6
|
export declare const idDefinition: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventDescription } from 'coveo.analytics';
|
|
2
2
|
import { SearchResponseSuccess } from '../../api/search/search/search-response.js';
|
|
3
|
-
import { NavigatorContext } from '../../app/
|
|
3
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
4
4
|
import { InstantResultSection } from '../../state/state-sections.js';
|
|
5
5
|
import { LegacySearchAction } from '../analytics/analytics-utils.js';
|
|
6
6
|
import { FetchInstantResultsActionCreatorPayload, FetchInstantResultsThunkReturn } from '../instant-results/instant-results-actions.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDescription } from 'coveo.analytics';
|
|
2
|
-
import { NavigatorContext } from '../../app/
|
|
2
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
3
3
|
import { SearchAppState } from '../../state/search-app-state.js';
|
|
4
4
|
import { ConfigurationSection } from '../../state/state-sections.js';
|
|
5
5
|
import { AutomaticFacetRequest } from '../facets/automatic-facet-set/interfaces/request.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventDescription } from 'coveo.analytics';
|
|
2
2
|
import { SearchRequest } from '../../api/search/search/search-request.js';
|
|
3
|
-
import { NavigatorContext } from '../../app/
|
|
3
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
4
4
|
import { SearchAppState } from '../../state/search-app-state.js';
|
|
5
5
|
import { ConfigurationSection } from '../../state/state-sections.js';
|
|
6
6
|
type StateNeededByExecuteSearchAndFolding = ConfigurationSection & Partial<SearchAppState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlanRequest } from '../../api/search/plan/plan-request.js';
|
|
2
|
-
import { NavigatorContext } from '../../app/
|
|
2
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
3
3
|
import { ConfigurationSection, ContextSection, PipelineSection, QuerySection, SearchHubSection } from '../../state/state-sections.js';
|
|
4
4
|
import { OmniboxSuggestionMetadata } from '../query-suggest/query-suggest-analytics-actions.js';
|
|
5
5
|
export interface RegisterStandaloneSearchBoxActionCreatorPayload {
|
|
@@ -23,7 +23,7 @@ export type { CoreEngine, ExternalEngineOptions } from './app/engine.js';
|
|
|
23
23
|
export type { EngineConfiguration, AnalyticsConfiguration, AnalyticsRuntimeEnvironment, } from './app/engine-configuration.js';
|
|
24
24
|
export type { LoggerOptions } from './app/logger.js';
|
|
25
25
|
export type { LogLevel } from './app/logger.js';
|
|
26
|
-
export type { NavigatorContext } from './app/
|
|
26
|
+
export type { NavigatorContext } from './app/navigator-context-provider.js';
|
|
27
27
|
export type { SearchParametersState, SearchAppState, } from './state/search-app-state.js';
|
|
28
28
|
export type { Controller, Subscribable, } from './controllers/controller/headless-controller.js';
|
|
29
29
|
export { buildController } from './controllers/controller/headless-controller.js';
|
|
@@ -22,7 +22,7 @@ export type { CoreEngine, ExternalEngineOptions } from './app/engine.js';
|
|
|
22
22
|
export type { EngineConfiguration, AnalyticsConfiguration, AnalyticsRuntimeEnvironment, } from './app/engine-configuration.js';
|
|
23
23
|
export type { LoggerOptions } from './app/logger.js';
|
|
24
24
|
export type { LogLevel } from './app/logger.js';
|
|
25
|
-
export type { NavigatorContext } from './app/
|
|
25
|
+
export type { NavigatorContext } from './app/navigator-context-provider.js';
|
|
26
26
|
export * from './features/insight-interface/insight-interface-actions-loader.js';
|
|
27
27
|
export * from './features/insight-search/insight-search-actions-loader.js';
|
|
28
28
|
export * from './features/insight-search/insight-query-set-actions-loader.js';
|
package/force-app/main/default/staticresources/coveoheadless/definitions/recommendation.index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type { CoreEngine, ExternalEngineOptions } from './app/engine.js';
|
|
|
23
23
|
export type { EngineConfiguration, AnalyticsConfiguration, AnalyticsRuntimeEnvironment, } from './app/engine-configuration.js';
|
|
24
24
|
export type { LoggerOptions } from './app/logger.js';
|
|
25
25
|
export type { LogLevel } from './app/logger.js';
|
|
26
|
-
export type { NavigatorContext } from './app/
|
|
26
|
+
export type { NavigatorContext } from './app/navigator-context-provider.js';
|
|
27
27
|
export * from './features/configuration/configuration-actions-loader.js';
|
|
28
28
|
export * from './features/configuration/search-configuration-actions-loader.js';
|
|
29
29
|
export * from './features/advanced-search-queries/advanced-search-queries-actions-loader.js';
|
package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export type { ControllerDefinition, ControllerDefinitionsMap, InferControllerFro
|
|
|
81
81
|
export { Kind } from './app/commerce-ssr-engine/types/kind.js';
|
|
82
82
|
export type { EngineDefinition, InferStaticState, InferHydratedState, InferBuildResult, HydrateStaticState, FetchStaticState, FetchStaticStateOptions, HydrateStaticStateOptions, Build, BuildOptions, FromBuildResult, FromBuildResultOptions, } from './app/commerce-ssr-engine/types/core-engine.js';
|
|
83
83
|
export type { LoggerOptions } from './app/logger.js';
|
|
84
|
-
export type { NavigatorContext, BrowserNavigatorContextProvider, NavigatorContextProvider, } from './app/
|
|
84
|
+
export type { NavigatorContext, BrowserNavigatorContextProvider, NavigatorContextProvider, } from './app/navigator-context-provider.js';
|
|
85
85
|
export type { LogLevel } from './app/logger.js';
|
|
86
86
|
export type { CommerceSearchParametersState, CommerceProductListingParametersState, CommerceAppState, } from './state/commerce-app-state.js';
|
|
87
87
|
export type { Controller, Subscribable, } from './controllers/controller/headless-controller.js';
|
|
@@ -91,14 +91,14 @@ export type { SortDefinition } from './controllers/sort/headless-sort.ssr.js';
|
|
|
91
91
|
export type { StandaloneSearchBoxDefinition } from './controllers/standalone-search-box/headless-standalone-search-box.ssr.js';
|
|
92
92
|
export type { StaticFilterDefinition } from './controllers/static-filter/headless-static-filter.ssr.js';
|
|
93
93
|
export type { TabDefinition } from './controllers/tab/headless-tab.ssr.js';
|
|
94
|
-
export type { NavigatorContextProvider } from './app/
|
|
94
|
+
export type { NavigatorContextProvider } from './app/navigator-context-provider.js';
|
|
95
95
|
export type { CoreEngine, ExternalEngineOptions } from './app/engine.js';
|
|
96
96
|
export type { EngineConfiguration, AnalyticsConfiguration, AnalyticsRuntimeEnvironment, } from './app/engine-configuration.js';
|
|
97
97
|
export type { ControllerDefinitionWithoutProps, ControllerDefinitionWithProps, ControllerDefinitionsMap, InferControllerFromDefinition, InferControllersMapFromDefinition, InferControllerStaticStateFromController, InferControllerStaticStateMapFromControllers, InferControllerStaticStateMapFromDefinitions, } from './app/ssr-engine/types/common.js';
|
|
98
98
|
export type { Build } from './app/ssr-engine/types/build.js';
|
|
99
99
|
export type { EngineDefinition, InferStaticState, InferHydratedState, InferBuildResult, } from './app/ssr-engine/types/core-engine.js';
|
|
100
100
|
export type { LoggerOptions } from './app/logger.js';
|
|
101
|
-
export type { NavigatorContext } from './app/
|
|
101
|
+
export type { NavigatorContext } from './app/navigator-context-provider.js';
|
|
102
102
|
export type { LogLevel } from './app/logger.js';
|
|
103
103
|
export type { SearchParametersState, SearchAppState, } from './state/search-app-state.js';
|
|
104
104
|
export type { Controller, Subscribable, } from './controllers/controller/headless-controller.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NavigatorContext, NavigatorContextProvider } from '../app/
|
|
1
|
+
import { NavigatorContext, NavigatorContextProvider } from '../app/navigator-context-provider.js';
|
|
2
2
|
export declare const buildMockNavigatorContextProvider: (context?: Partial<NavigatorContext>) => NavigatorContextProvider;
|