@coveo/quantic 3.27.0-pre.e8e95b2dbe → 3.27.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/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/base-analytics.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/history-store.d.ts +1 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-api-client.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-api-params.d.ts +5 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/request.d.ts +11 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/recommendations/recommendations-request.d.ts +11 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/search/query-suggest/query-suggest-request.d.ts +11 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/search/query-suggest/query-suggest-response.d.ts +2 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/common/trigger.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/generated-answer/generated-answer-client.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/generated-answer/generated-answer-event-payload.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +8 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +119 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/platform-client.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/fields/fields-response.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/search-api-params.d.ts +7 -20
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/case-assist-api-client.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/case-assist-params.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/get-case-classifications/get-case-classifications-request.d.ts +5 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/get-document-suggestions/get-document-suggestions-request.d.ts +5 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/get-interface/get-interface-config-response.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/insight-api-client.d.ts +5 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/insight-params.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/common.d.ts +9 -12
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/core-engine.d.ts +4 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/from-build-result.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/search-engine/jwt-reducer.d.ts +0 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/types/build.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/types/common.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/types/fetch-static-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/types/hydrate-static-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/headless-core-commerce-facet.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-category-field-suggestions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-category-filter-suggestions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-view/headless-product-view.ssr.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search-box/headless-search-box.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/standalone-search-box/headless-standalone-search-box.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/breadcrumb-manager/headless-core-breadcrumb-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/headless-context-reserved-keys.d.ts +1 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/headless-core-context.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/did-you-mean/headless-core-did-you-mean.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/_common/facet-option-definitions.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/facet/headless-core-facet.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/date-facet/headless-date-facet-options.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/headless-core-range-facet.d.ts +7 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/numeric-facet/headless-core-numeric-facet.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/numeric-facet/headless-numeric-facet-options.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/folded-result-list/headless-core-folded-result-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/generated-answer/headless-core-generated-answer.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/generated-answer/headless-core-interactive-citation.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/generated-answer/headless-searchapi-generated-answer.d.ts +2 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/search-box/headless-core-search-box-options.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/search-parameter-manager/headless-core-search-parameter-manager.d.ts +0 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/smart-snippet/headless-core-smart-snippet.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/smart-snippet-questions-list/headless-core-smart-snippet-questions-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-notify-trigger.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/facets/automatic-facet/headless-automatic-facet.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/facets/category-facet/headless-category-facet.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/facets/category-facet/headless-insight-category-facet.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/facets/range-facet/numeric-facet/headless-insight-numeric-facet.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/generated-answer/headless-insight-generated-answer.d.ts +1 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/smart-snippet/headless-insight-smart-snippet-interactive-inline-links.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/smart-snippet-questions-list/headless-insight-smart-snippet-interactive-questions.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/smart-snippet-questions-list/headless-insight-smart-snippet-questions-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/instant-results/instant-results-options.d.ts +1 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/headless-answerapi-generated-answer.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recent-queries-list/headless-recent-queries-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recent-results-list/headless-recent-results-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/smart-snippet/headless-smart-snippet-interactive-inline-links.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/smart-snippet-questions-list/headless-smart-snippet-interactive-questions.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/smart-snippet-questions-list/headless-smart-snippet-questions-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/tab-manager/headless-tab-manager.ssr.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/triggers/headless-notify-trigger.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/triggers/headless-notify-trigger.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/triggers/headless-redirection-trigger.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/advanced-search-queries/advanced-search-queries-state.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-actions.d.ts +0 -33
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-utils.d.ts +11 -17
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/legacy-search-action-cause.d.ts +1 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/attached-results/attached-results-actions.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/attached-results/attached-results-analytics-actions.d.ts +104 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-assist-configuration/case-assist-configuration-actions.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-field/case-field-actions.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-field/case-field-state.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-input/case-input-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-search-set/commerce-facet-search-actions.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/facet-set-reducers.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/interfaces/request.d.ts +2 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/interfaces/response.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/numeric-facet/manual-numeric-facet-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/pagination/pagination-actions.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/parameters/parameters-selectors.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/parameters/parameters-serializer.ssr.d.ts +1 -23
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-templates/product-templates-helpers.d.ts +0 -33
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/recent-queries/recent-queries-actions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/recommendations/recommendations-actions.d.ts +2 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/search/search-actions.d.ts +3 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/search/search-selectors.d.ts +0 -21
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/plan-request-builder.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/standalone-search-box-set-actions.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/configuration-state.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/debug/ranking-info-parser.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/document-suggestion/document-suggestion-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/category-facet-set/category-facet-validate-payload.d.ts +0 -9
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-set/facet-set-insight-analytics-actions.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-set/facet-set-insight-utils.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/generic/facet-reducer-helpers.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/date-facet-set/interfaces/response.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/generic/interfaces/options.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/generic/interfaces/range-facet.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/generic/interfaces/request.d.ts +1 -11
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/generic/range-facet-utils.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/numeric-facet-set/interfaces/response.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/folding/folding-analytics-actions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-selectors.d.ts +0 -33
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-configuration/insight-configuration-actions.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-search/insight-search-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-user-actions/insight-user-actions-actions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-user-actions/insight-user-actions-preprocessing.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/instant-results/instant-results-actions.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query-suggest/query-suggest-actions.d.ts +0 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/result/result-insight-analytics-actions.d.ts +52 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-actions-thunk-processor.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-actions.d.ts +0 -82
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +8 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions-thunk-processor.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions.d.ts +0 -65
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +8 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-parameters/search-parameter-actions.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-parameters/search-parameter-serializer.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort/sort.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/standalone-search-box-set/standalone-search-box-set-actions.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/templates/templates-manager.d.ts +0 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/index.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/insight.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/state/insight-app-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/state/state-sections.d.ts +0 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-commerce-api-request.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-engine-v2.d.ts +0 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-search-request.d.ts +8 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/fetch-event-source/fetch.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/url-utils.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/utils.d.ts +0 -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 +6 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/sub-controller/headless-sub-controller.ssr.d.ts +0 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-listing/utils/load-product-listing-reducers.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search/utils/load-search-reducers.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/example-deleteme-headless-case-context.d.ts +0 -32
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/headless-core-internal-context.d.ts +0 -31
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/headless-strict-context-factory.d.ts +0 -13
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/generic/interfaces/response.d.ts +0 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort/sort-actions-loader.d.ts +0 -35
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort/sort-actions.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort/sort-slice.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort/sort-state.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-insight-api-client.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/fetch-event-source/index.d.ts +0 -2
|
@@ -2,10 +2,7 @@ import type { SearchResponseSuccess } from '../../../api/search/search/search-re
|
|
|
2
2
|
import type { InstantResultSection } from '../../../state/state-sections.js';
|
|
3
3
|
import type { AnalyticsAsyncThunk, LegacySearchAction } from '../../analytics/analytics-utils.js';
|
|
4
4
|
import { type FetchInstantResultsActionCreatorPayload, type FetchInstantResultsThunkReturn } from '../../instant-results/instant-results-actions.js';
|
|
5
|
-
import { type UpdateQueryActionCreatorPayload } from '../../query/query-actions.js';
|
|
6
|
-
import { type MappedSearchRequest } from '../search-mappings.js';
|
|
7
5
|
import { type StateNeededByExecuteSearch } from './search-actions-thunk-processor.js';
|
|
8
|
-
export type { StateNeededByExecuteSearch } from './search-actions-thunk-processor.js';
|
|
9
6
|
export interface ExecuteSearchThunkReturn {
|
|
10
7
|
/** The successful search response. */
|
|
11
8
|
response: SearchResponseSuccess;
|
|
@@ -20,23 +17,6 @@ export interface ExecuteSearchThunkReturn {
|
|
|
20
17
|
/** The analytics action to log after the query. */
|
|
21
18
|
analyticsAction: AnalyticsAsyncThunk;
|
|
22
19
|
}
|
|
23
|
-
interface PrepareForSearchWithQueryOptions {
|
|
24
|
-
/**
|
|
25
|
-
* Whether to clear all active query filters when the end user submits a new query from the search box.
|
|
26
|
-
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no results.
|
|
27
|
-
*/
|
|
28
|
-
clearFilters: boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare const prepareForSearchWithQuery: import("@reduxjs/toolkit").AsyncThunk<void, UpdateQueryActionCreatorPayload & PrepareForSearchWithQueryOptions, {
|
|
31
|
-
state: StateNeededByExecuteSearch;
|
|
32
|
-
extra: import("../../../app/thunk-extra-arguments.js").ThunkExtraArguments;
|
|
33
|
-
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction> | undefined;
|
|
34
|
-
rejectValue?: unknown;
|
|
35
|
-
serializedErrorType?: unknown;
|
|
36
|
-
pendingMeta?: unknown;
|
|
37
|
-
fulfilledMeta?: unknown;
|
|
38
|
-
rejectedMeta?: unknown;
|
|
39
|
-
}>;
|
|
40
20
|
export declare const executeSearch: import("@reduxjs/toolkit").AsyncThunk<ExecuteSearchThunkReturn, LegacySearchAction, {
|
|
41
21
|
rejectValue: import("../../../api/search/search-api-error-response.js").SearchAPIErrorWithStatusCode;
|
|
42
22
|
state: StateNeededByExecuteSearch;
|
|
@@ -87,69 +67,7 @@ export declare const fetchInstantResults: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
87
67
|
fulfilledMeta?: unknown;
|
|
88
68
|
rejectedMeta?: unknown;
|
|
89
69
|
}>;
|
|
90
|
-
export declare const buildInstantResultSearchRequest: (state: StateNeededByExecuteSearch, q: string, numberOfResults: number) => Promise<MappedSearchRequest<{
|
|
91
|
-
numberOfResults: number;
|
|
92
|
-
q: string;
|
|
93
|
-
enableDidYouMean?: boolean;
|
|
94
|
-
url: string;
|
|
95
|
-
accessToken: string;
|
|
96
|
-
organizationId: string;
|
|
97
|
-
aq?: string;
|
|
98
|
-
cq?: string;
|
|
99
|
-
lq?: string;
|
|
100
|
-
dq?: string;
|
|
101
|
-
firstResult?: number;
|
|
102
|
-
sortCriteria?: string;
|
|
103
|
-
facets?: import("../../facets/generic/interfaces/generic-facet-request.js").AnyFacetRequest[];
|
|
104
|
-
context?: Record<string, string | string[]>;
|
|
105
|
-
dictionaryFieldContext?: Record<string, string>;
|
|
106
|
-
queryCorrection?: {
|
|
107
|
-
enabled?: boolean;
|
|
108
|
-
options?: {
|
|
109
|
-
automaticallyCorrect?: "never" | "whenNoResults";
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
enableQuerySyntax?: boolean;
|
|
113
|
-
fieldsToInclude?: string[];
|
|
114
|
-
pipeline?: string;
|
|
115
|
-
searchHub?: string;
|
|
116
|
-
facetOptions?: import("../../facet-options/facet-options.js").FacetOptions;
|
|
117
|
-
debug?: boolean;
|
|
118
|
-
locale?: string;
|
|
119
|
-
filterField?: string;
|
|
120
|
-
parentField?: string;
|
|
121
|
-
childField?: string;
|
|
122
|
-
filterFieldRange?: number;
|
|
123
|
-
tab: string;
|
|
124
|
-
referrer: string | null;
|
|
125
|
-
timezone: string;
|
|
126
|
-
analytics?: {
|
|
127
|
-
actionCause?: string;
|
|
128
|
-
customData?: object;
|
|
129
|
-
clientId: string;
|
|
130
|
-
deviceId?: string;
|
|
131
|
-
pageId?: string;
|
|
132
|
-
clientTimestamp: string;
|
|
133
|
-
documentReferrer: string | null;
|
|
134
|
-
originContext: string;
|
|
135
|
-
userDisplayName?: string;
|
|
136
|
-
documentLocation?: string | null;
|
|
137
|
-
trackingId?: string;
|
|
138
|
-
capture?: boolean;
|
|
139
|
-
source?: string[];
|
|
140
|
-
};
|
|
141
|
-
excerptLength?: number;
|
|
142
|
-
actionsHistory?: import("../../../api/analytics/coveo.analytics/history-store.js").HistoryElement[];
|
|
143
|
-
authentication?: string;
|
|
144
|
-
generateAutomaticFacets?: {
|
|
145
|
-
desiredCount: number;
|
|
146
|
-
numberOfValues?: number;
|
|
147
|
-
currentFacets?: import("../../facets/automatic-facet-set/interfaces/request.js").AutomaticFacetRequest[];
|
|
148
|
-
};
|
|
149
|
-
pipelineRuleParameters?: import("../../../api/search/search-api-params.js").PipelineRuleParameters;
|
|
150
|
-
}>>;
|
|
151
70
|
export declare function legacyFetchInstantResults(payload: FetchInstantResultsActionCreatorPayload, config: any): Promise<any>;
|
|
152
71
|
export declare function legacyFetchPage(state: StateNeededByExecuteSearch, config: any, searchAction: LegacySearchAction): Promise<any>;
|
|
153
72
|
export declare function legacyFetchMoreResults(config: any, state: StateNeededByExecuteSearch): Promise<any>;
|
|
154
|
-
export declare function legacyFetchFacetValues(config: any, searchAction: LegacySearchAction, state: StateNeededByExecuteSearch): Promise<any>;
|
|
155
73
|
export declare function legacyExecuteSearch(state: StateNeededByExecuteSearch, config: any, searchAction: LegacySearchAction): Promise<any>;
|
|
@@ -4,7 +4,14 @@ import type { ConfigurationSection } from '../../../state/state-sections.js';
|
|
|
4
4
|
import type { AutomaticFacetRequest } from '../../facets/automatic-facet-set/interfaces/request.js';
|
|
5
5
|
type StateNeededBySearchRequest = ConfigurationSection & Partial<SearchAppState>;
|
|
6
6
|
export declare const buildSearchRequest: (state: StateNeededBySearchRequest, eventDescription?: EventDescription) => Promise<import("../search-mappings.js").MappedSearchRequest<{
|
|
7
|
-
pipelineRuleParameters?:
|
|
7
|
+
pipelineRuleParameters?: {
|
|
8
|
+
mlGenerativeQuestionAnswering?: {
|
|
9
|
+
responseFormat: {
|
|
10
|
+
contentFormat?: import("../../generated-answer/generated-response-format.js").GeneratedContentFormat[];
|
|
11
|
+
};
|
|
12
|
+
citationsFieldToInclude: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
8
15
|
generateAutomaticFacets?: {
|
|
9
16
|
desiredCount: number;
|
|
10
17
|
numberOfValues?: number;
|
|
@@ -8,7 +8,7 @@ import type { ClientThunkExtraArguments } from '../../app/thunk-extra-arguments.
|
|
|
8
8
|
import type { AdvancedSearchQueriesSection, CategoryFacetSection, ConfigurationSection, ContextSection, DateFacetSection, DebugSection, DidYouMeanSection, FacetOptionsSection, FacetOrderSection, FacetSection, FieldsSection, FoldingSection, NumericFacetSection, PaginationSection, PipelineSection, QuerySection, QuerySetSection, SearchHubSection, SearchSection, SortSection, TriggerSection } from '../../state/state-sections.js';
|
|
9
9
|
import type { ExecuteSearchThunkReturn } from './search-actions.js';
|
|
10
10
|
import { type ErrorResponse, type MappedSearchRequest, type SuccessResponse } from './search-mappings.js';
|
|
11
|
-
|
|
11
|
+
interface AnalyticsAction {
|
|
12
12
|
actionCause?: string;
|
|
13
13
|
}
|
|
14
14
|
export type StateNeededByExecuteSearch = ConfigurationSection & Partial<QuerySection & AdvancedSearchQueriesSection & PaginationSection & SortSection & FacetSection & NumericFacetSection & CategoryFacetSection & DateFacetSection & ContextSection & DidYouMeanSection & FieldsSection & PipelineSection & SearchHubSection & QuerySetSection & FacetOptionsSection & FacetOrderSection & DebugSection & SearchSection & FoldingSection & TriggerSection>;
|
|
@@ -19,7 +19,7 @@ interface FetchedResponse {
|
|
|
19
19
|
requestExecuted: SearchRequest;
|
|
20
20
|
}
|
|
21
21
|
type ValidReturnTypeFromProcessingStep<RejectionType> = ExecuteSearchThunkReturn | RejectionType;
|
|
22
|
-
|
|
22
|
+
interface AsyncThunkConfig {
|
|
23
23
|
getState: () => StateNeededByExecuteSearch;
|
|
24
24
|
dispatch: ThunkDispatch<StateNeededByExecuteSearch, ClientThunkExtraArguments<SearchAPIClient> & {
|
|
25
25
|
searchAPIClient?: SearchAPIClient | undefined;
|
|
@@ -29,7 +29,7 @@ export interface AsyncThunkConfig {
|
|
|
29
29
|
extra: ClientThunkExtraArguments<SearchAPIClient>;
|
|
30
30
|
}
|
|
31
31
|
type QueryCorrectionCallback = (modification: string) => void;
|
|
32
|
-
|
|
32
|
+
interface FetchFromAPIOptions {
|
|
33
33
|
origin: SearchOrigin;
|
|
34
34
|
disableAbortWarning?: boolean;
|
|
35
35
|
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import type { EventDescription } from 'coveo.analytics';
|
|
2
1
|
import type { SearchResponseSuccess } from '../../api/search/search/search-response.js';
|
|
3
|
-
import type { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
4
2
|
import type { InstantResultSection } from '../../state/state-sections.js';
|
|
5
3
|
import { type LegacySearchAction } from '../analytics/analytics-utils.js';
|
|
6
4
|
import { type FetchInstantResultsActionCreatorPayload, type FetchInstantResultsThunkReturn } from '../instant-results/instant-results-actions.js';
|
|
7
5
|
import { type UpdateQueryActionCreatorPayload } from '../query/query-actions.js';
|
|
8
6
|
import { type StateNeededByExecuteSearch } from './search-actions-thunk-processor.js';
|
|
9
|
-
import { type MappedSearchRequest } from './search-mappings.js';
|
|
10
7
|
export interface SearchAction {
|
|
11
8
|
actionCause: string;
|
|
12
9
|
}
|
|
13
|
-
export type { StateNeededByExecuteSearch } from './search-actions-thunk-processor.js';
|
|
14
10
|
export interface ExecuteSearchThunkReturn {
|
|
15
11
|
/** The successful search response. */
|
|
16
12
|
response: SearchResponseSuccess;
|
|
@@ -95,64 +91,3 @@ export declare const fetchInstantResults: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
95
91
|
fulfilledMeta?: unknown;
|
|
96
92
|
rejectedMeta?: unknown;
|
|
97
93
|
}>;
|
|
98
|
-
export declare const buildInstantResultSearchRequest: (state: StateNeededByExecuteSearch, navigatorContext: NavigatorContext, q: string, numberOfResults: number, eventDescription: EventDescription) => Promise<MappedSearchRequest<{
|
|
99
|
-
numberOfResults: number;
|
|
100
|
-
q: string;
|
|
101
|
-
enableDidYouMean?: boolean;
|
|
102
|
-
url: string;
|
|
103
|
-
accessToken: string;
|
|
104
|
-
organizationId: string;
|
|
105
|
-
aq?: string;
|
|
106
|
-
cq?: string;
|
|
107
|
-
lq?: string;
|
|
108
|
-
dq?: string;
|
|
109
|
-
firstResult?: number;
|
|
110
|
-
sortCriteria?: string;
|
|
111
|
-
facets?: import("../facets/generic/interfaces/generic-facet-request.js").AnyFacetRequest[];
|
|
112
|
-
context?: Record<string, string | string[]>;
|
|
113
|
-
dictionaryFieldContext?: Record<string, string>;
|
|
114
|
-
queryCorrection?: {
|
|
115
|
-
enabled?: boolean;
|
|
116
|
-
options?: {
|
|
117
|
-
automaticallyCorrect?: "never" | "whenNoResults";
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
enableQuerySyntax?: boolean;
|
|
121
|
-
fieldsToInclude?: string[];
|
|
122
|
-
pipeline?: string;
|
|
123
|
-
searchHub?: string;
|
|
124
|
-
facetOptions?: import("../facet-options/facet-options.js").FacetOptions;
|
|
125
|
-
debug?: boolean;
|
|
126
|
-
locale?: string;
|
|
127
|
-
filterField?: string;
|
|
128
|
-
parentField?: string;
|
|
129
|
-
childField?: string;
|
|
130
|
-
filterFieldRange?: number;
|
|
131
|
-
tab: string;
|
|
132
|
-
referrer: string | null;
|
|
133
|
-
timezone: string;
|
|
134
|
-
analytics?: {
|
|
135
|
-
actionCause?: string;
|
|
136
|
-
customData?: object;
|
|
137
|
-
clientId: string;
|
|
138
|
-
deviceId?: string;
|
|
139
|
-
pageId?: string;
|
|
140
|
-
clientTimestamp: string;
|
|
141
|
-
documentReferrer: string | null;
|
|
142
|
-
originContext: string;
|
|
143
|
-
userDisplayName?: string;
|
|
144
|
-
documentLocation?: string | null;
|
|
145
|
-
trackingId?: string;
|
|
146
|
-
capture?: boolean;
|
|
147
|
-
source?: string[];
|
|
148
|
-
};
|
|
149
|
-
excerptLength?: number;
|
|
150
|
-
actionsHistory?: import("../../api/analytics/coveo.analytics/history-store.js").HistoryElement[];
|
|
151
|
-
authentication?: string;
|
|
152
|
-
generateAutomaticFacets?: {
|
|
153
|
-
desiredCount: number;
|
|
154
|
-
numberOfValues?: number;
|
|
155
|
-
currentFacets?: import("../facets/automatic-facet-set/interfaces/request.js").AutomaticFacetRequest[];
|
|
156
|
-
};
|
|
157
|
-
pipelineRuleParameters?: import("../../api/search/search-api-params.js").PipelineRuleParameters;
|
|
158
|
-
}>>;
|
|
@@ -5,7 +5,14 @@ import type { ConfigurationSection } from '../../state/state-sections.js';
|
|
|
5
5
|
import type { AutomaticFacetRequest } from '../facets/automatic-facet-set/interfaces/request.js';
|
|
6
6
|
type StateNeededBySearchRequest = ConfigurationSection & Partial<SearchAppState>;
|
|
7
7
|
export declare const buildSearchRequest: (state: StateNeededBySearchRequest, navigatorContext: NavigatorContext, eventDescription?: EventDescription) => Promise<import("./search-mappings.js").MappedSearchRequest<{
|
|
8
|
-
pipelineRuleParameters?:
|
|
8
|
+
pipelineRuleParameters?: {
|
|
9
|
+
mlGenerativeQuestionAnswering?: {
|
|
10
|
+
responseFormat: {
|
|
11
|
+
contentFormat?: import("../generated-answer/generated-response-format.js").GeneratedContentFormat[];
|
|
12
|
+
};
|
|
13
|
+
citationsFieldToInclude: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
9
16
|
generateAutomaticFacets?: {
|
|
10
17
|
desiredCount: number;
|
|
11
18
|
numberOfValues?: number;
|
|
@@ -74,10 +74,6 @@ export interface SearchParameters {
|
|
|
74
74
|
*/
|
|
75
75
|
af?: Record<string, string[]>;
|
|
76
76
|
}
|
|
77
|
-
/**
|
|
78
|
-
* The unique identifier of a tab.
|
|
79
|
-
*/
|
|
80
|
-
export type TabId = string;
|
|
81
77
|
export declare const restoreSearchParameters: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SearchParameters], SearchParameters, "searchParameters/restore", never, never>;
|
|
82
78
|
/**
|
|
83
79
|
* Restores a tab from the search parameters.
|
|
@@ -13,7 +13,6 @@ type FacetSearchParameters = keyof Pick<SearchParameters, 'f' | 'fExcluded' | 'c
|
|
|
13
13
|
type FacetKey = keyof typeof supportedFacetParameters;
|
|
14
14
|
declare const supportedFacetParameters: Record<FacetSearchParameters, boolean>;
|
|
15
15
|
export declare const delimiter = "&";
|
|
16
|
-
export declare const equal = "=";
|
|
17
16
|
export declare function buildSearchParameterSerializer(): {
|
|
18
17
|
serialize: (obj: {}) => string;
|
|
19
18
|
deserialize: typeof deserialize;
|
|
@@ -23,7 +22,6 @@ export declare function isValidBasicKey(key: string): key is Exclude<SearchParam
|
|
|
23
22
|
export declare function isRangeFacetKey(key: string): key is Extract<FacetKey, 'nf' | 'df' | 'mnf'>;
|
|
24
23
|
export declare function isValidKey(key: string): key is SearchParameterKey;
|
|
25
24
|
export declare const serialize: <T extends {}>(pairSerializer: (pair: [string, unknown]) => string) => (obj: T) => string;
|
|
26
|
-
export declare function serializePair(pair: [string, unknown]): string;
|
|
27
25
|
export declare function serializeSpecialCharacters(key: string, val: unknown): string;
|
|
28
26
|
export declare function isFacetObject(obj: unknown): obj is Record<string, string[]>;
|
|
29
27
|
export declare function isRangeFacetObject(obj: unknown): obj is Record<string, RangeValueRequest[]>;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort/sort.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RecordValue } from '@coveo/bueno';
|
|
2
1
|
export declare enum SortBy {
|
|
3
2
|
Relevance = "relevance",
|
|
4
3
|
Fields = "fields"
|
|
@@ -20,5 +19,3 @@ export type SortByFields = {
|
|
|
20
19
|
};
|
|
21
20
|
export type SortCriterion = SortByRelevance | SortByFields;
|
|
22
21
|
export declare const buildRelevanceSortCriterion: () => SortByRelevance;
|
|
23
|
-
export declare const buildFieldsSortCriterion: (fields: SortByFieldsFields[]) => SortByFields;
|
|
24
|
-
export declare const sortCriterionDefinition: RecordValue;
|
|
@@ -16,7 +16,7 @@ export interface RegisterStandaloneSearchBoxActionCreatorPayload {
|
|
|
16
16
|
*/
|
|
17
17
|
overwrite?: boolean;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface UpdateStandaloneSearchBoxPayload {
|
|
20
20
|
/**
|
|
21
21
|
* The standalone search box id.
|
|
22
22
|
*/
|
|
@@ -71,3 +71,4 @@ export declare const fetchRedirectUrl: import("@reduxjs/toolkit").AsyncThunk<str
|
|
|
71
71
|
rejectedMeta?: unknown;
|
|
72
72
|
}>;
|
|
73
73
|
export declare const buildPlanRequest: (state: StateNeededForRedirect, navigatorContext: NavigatorContext) => Promise<PlanRequest>;
|
|
74
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Schema } from '@coveo/bueno';
|
|
2
1
|
export type TemplateCondition<ItemType> = (item: ItemType) => boolean;
|
|
3
2
|
export interface Template<ItemType, Content = unknown, LinkContent = unknown> {
|
|
4
3
|
/**
|
|
@@ -23,12 +22,6 @@ export interface Template<ItemType, Content = unknown, LinkContent = unknown> {
|
|
|
23
22
|
*/
|
|
24
23
|
fields?: string[];
|
|
25
24
|
}
|
|
26
|
-
export declare const templateSchema: Schema<{
|
|
27
|
-
content: unknown;
|
|
28
|
-
conditions: unknown;
|
|
29
|
-
priority: number;
|
|
30
|
-
fields: import("@coveo/bueno").PrimitivesValues[] | null | undefined;
|
|
31
|
-
}>;
|
|
32
25
|
export interface TemplatesManager<ItemType, TemplateContent = unknown, LinkTemplateContent = unknown> {
|
|
33
26
|
registerTemplates(...newTemplates: Template<ItemType, TemplateContent>[]): void;
|
|
34
27
|
selectTemplate(item: ItemType): TemplateContent | null;
|
|
@@ -140,6 +140,7 @@ export * from './features/dictionary-field-context/dictionary-field-context-acti
|
|
|
140
140
|
export * from './features/did-you-mean/did-you-mean-actions-loader.js';
|
|
141
141
|
export * from './features/excerpt-length/excerpt-length-actions-loader.js';
|
|
142
142
|
export * from './features/facet-options/facet-options-actions-loader.js';
|
|
143
|
+
export * from './features/facets/automatic-facet-set/automatic-facet-set-actions-loader.js';
|
|
143
144
|
export * from './features/facets/category-facet-set/category-facet-set-actions-loader.js';
|
|
144
145
|
export * from './features/facets/facet-set/facet-set-actions-loader.js';
|
|
145
146
|
export { baseFacetResponseSelector, facetRequestSelector, facetResponseSelectedValuesSelector, facetResponseSelector, } from './features/facets/facet-set/facet-set-selectors.js';
|
|
@@ -164,6 +165,7 @@ export { ResultTemplatesHelpers } from './features/result-templates/result-templ
|
|
|
164
165
|
export { buildResultTemplatesManager } from './features/result-templates/result-templates-manager.js';
|
|
165
166
|
export * from './features/search/search-actions-loader.js';
|
|
166
167
|
export * from './features/search-hub/search-hub-actions-loader.js';
|
|
168
|
+
export * from './features/search-parameters/search-parameter-actions-loader.js';
|
|
167
169
|
export * from './features/sort-criteria/sort-criteria-actions-loader.js';
|
|
168
170
|
export * from './features/standalone-search-box-set/standalone-search-box-set-actions-loader.js';
|
|
169
171
|
export * from './features/static-filter-set/static-filter-set-actions-loader.js';
|
|
@@ -103,7 +103,7 @@ export type { RangeFacetRangeAlgorithm, RangeFacetSortCriterion, } from './featu
|
|
|
103
103
|
export type { NumericFacetValue } from './features/facets/range-facets/numeric-facet-set/interfaces/response.js';
|
|
104
104
|
export * from './features/facets/range-facets/numeric-facet-set/numeric-facet-actions-loader.js';
|
|
105
105
|
export * from './features/fields/fields-actions-loader.js';
|
|
106
|
-
export * from './features/folding/folding-actions-loader.js';
|
|
106
|
+
export * from './features/folding/insight-folding-actions-loader.js';
|
|
107
107
|
export * from './features/insight-interface/insight-interface-actions-loader.js';
|
|
108
108
|
export type { InsightInterfaceState } from './features/insight-interface/insight-interface-state.js';
|
|
109
109
|
export * from './features/insight-search/insight-query-set-actions-loader.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { AttachedResultsSection, CategoryFacetSection, ConfigurationSection, ContextSection, DateFacetSection, DidYouMeanSection, FacetOptionsSection, FacetSearchSection, FacetSection, FieldsSection, FoldingSection, GeneratedAnswerSection, InsightCaseContextSection, InsightConfigurationSection, InsightInterfaceSection, InsightUserActionsSection, NumericFacetSection, PaginationSection, QuerySection, QuerySetSection, QuerySuggestionSection, QuestionAnsweringSection, ResultPreviewSection, SearchHubSection, SearchSection, SortSection, StaticFilterSection, TabSection, TriggerSection, VersionSection } from './state-sections.js';
|
|
2
|
-
|
|
2
|
+
type InsightSearchParametersState = FacetSection & DateFacetSection & NumericFacetSection & CategoryFacetSection & QuerySection & TabSection & FieldsSection & SortSection;
|
|
3
3
|
export type InsightAppState = InsightSearchParametersState & SearchHubSection & ConfigurationSection & VersionSection & InsightConfigurationSection & SearchSection & PaginationSection & InsightInterfaceSection & InsightCaseContextSection & ResultPreviewSection & FacetSection & FacetSearchSection & FacetOptionsSection & QuerySetSection & QuerySuggestionSection & SortSection & StaticFilterSection & DidYouMeanSection & AttachedResultsSection & QuestionAnsweringSection & FoldingSection & GeneratedAnswerSection & ContextSection & InsightUserActionsSection & TriggerSection;
|
|
4
|
+
export {};
|
package/force-app/main/default/staticresources/coveoheadless/definitions/state/state-sections.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ import type { RecentResultsState } from '../features/recent-results/recent-resul
|
|
|
54
54
|
import type { RecommendationState } from '../features/recommendation/recommendation-state.js';
|
|
55
55
|
import type { ResultPreviewState } from '../features/result-preview/result-preview-state.js';
|
|
56
56
|
import type { SearchState } from '../features/search/search-state.js';
|
|
57
|
-
import type { SortState } from '../features/sort/sort-state.js';
|
|
58
57
|
import type { SortCriteriaState } from '../features/sort-criteria/sort-criteria-state.js';
|
|
59
58
|
import type { StandaloneSearchBoxSetState } from '../features/standalone-search-box-set/standalone-search-box-set-state.js';
|
|
60
59
|
import type { StaticFilterSetState } from '../features/static-filter-set/static-filter-set-state.js';
|
|
@@ -339,12 +338,6 @@ export interface FieldSuggestionsOrderSection {
|
|
|
339
338
|
*/
|
|
340
339
|
fieldSuggestionsOrder: FieldSuggestionsOrderState;
|
|
341
340
|
}
|
|
342
|
-
export interface StructuredSortSection {
|
|
343
|
-
/**
|
|
344
|
-
* The information related to sort when using a structured sort format.
|
|
345
|
-
*/
|
|
346
|
-
sort: SortState;
|
|
347
|
-
}
|
|
348
341
|
export interface TriggerSection {
|
|
349
342
|
/**
|
|
350
343
|
* The information related to the triggers.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BaseCommerceAPIRequest,
|
|
1
|
+
import type { BaseCommerceAPIRequest, PaginatedCommerceAPIRequest } from '../api/commerce/common/request.js';
|
|
2
2
|
export declare const buildMockBaseCommerceAPIRequest: (config?: Partial<BaseCommerceAPIRequest>) => BaseCommerceAPIRequest;
|
|
3
3
|
export declare const buildMockPaginatedCommerceAPIRequest: (config?: Partial<PaginatedCommerceAPIRequest>) => PaginatedCommerceAPIRequest;
|
|
4
|
-
export declare const buildMockFilterableCommerceAPIRequest: (config?: Partial<FilterableCommerceAPIRequest>) => FilterableCommerceAPIRequest;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-engine-v2.d.ts
CHANGED
|
@@ -16,19 +16,11 @@ type SpyEverything<T> = {
|
|
|
16
16
|
type SpiedLoggerProps = SpyEverything<Pick<Logger, 'debug' | 'info' | 'warn' | 'error' | 'fatal'>>;
|
|
17
17
|
type MockedLogger = Logger & SpiedLoggerProps;
|
|
18
18
|
type MockedRelay = Relay & Pick<Relay, 'emit'>;
|
|
19
|
-
export declare function mockRelay(): MockedRelay;
|
|
20
19
|
type MockedCoreEngine<State extends StateFromEngine<CoreEngine> = StateFromEngine<CoreEngine>> = CoreEngine & {
|
|
21
20
|
state: State;
|
|
22
21
|
logger: MockedLogger;
|
|
23
22
|
relay: MockedRelay;
|
|
24
23
|
} & SpyEverything<Omit<CoreEngine, 'logger' | 'state' | 'relay'>>;
|
|
25
|
-
export declare function buildMockCoreEngine<State extends StateFromEngine<CoreEngine>>(initialState: State): MockedCoreEngine<State>;
|
|
26
|
-
type MockedCoreEngineNext<State extends StateFromEngineNext<CoreEngineNext> = StateFromEngineNext<CoreEngineNext>> = CoreEngineNext & {
|
|
27
|
-
[stateKey]: State;
|
|
28
|
-
logger: MockedLogger;
|
|
29
|
-
relay: MockedRelay;
|
|
30
|
-
} & SpyEverything<Omit<CoreEngineNext, 'logger' | 'stateKey' | 'relay'>>;
|
|
31
|
-
export declare function buildMockCoreEngineNext<State extends StateFromEngineNext<CoreEngineNext>>(initialState: State): MockedCoreEngineNext<State>;
|
|
32
24
|
export type MockedSearchEngine = SearchEngine & MockedCoreEngine<StateFromEngine<SearchEngine>> & SpyEverything<Pick<SearchEngine, 'executeFirstSearch' | 'executeFirstSearchAfterStandaloneSearchBoxRedirect'>>;
|
|
33
25
|
export type MockedCaseAssistEngine = CaseAssistEngine;
|
|
34
26
|
export type MockedRecommendationEngine = RecommendationEngine;
|
|
@@ -58,5 +58,12 @@ export declare function buildMockSearchRequest(config?: Partial<SearchRequest>):
|
|
|
58
58
|
numberOfValues?: number;
|
|
59
59
|
currentFacets?: import("../features/facets/automatic-facet-set/interfaces/request.js").AutomaticFacetRequest[];
|
|
60
60
|
};
|
|
61
|
-
pipelineRuleParameters?:
|
|
61
|
+
pipelineRuleParameters?: {
|
|
62
|
+
mlGenerativeQuestionAnswering?: {
|
|
63
|
+
responseFormat: {
|
|
64
|
+
contentFormat?: import("../index.js").GeneratedContentFormat[];
|
|
65
|
+
};
|
|
66
|
+
citationsFieldToInclude: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
62
69
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/noConfusingVoidType: <> */
|
|
2
2
|
import { type EventSourceMessage } from './parse.js';
|
|
3
|
-
|
|
4
|
-
export interface FetchEventSourceInit extends RequestInit {
|
|
3
|
+
interface FetchEventSourceInit extends RequestInit {
|
|
5
4
|
/**
|
|
6
5
|
* The request headers. FetchEventSource only supports the Record<string,string> format.
|
|
7
6
|
*/
|
|
@@ -43,3 +42,4 @@ export interface FetchEventSourceInit extends RequestInit {
|
|
|
43
42
|
fetch?: typeof fetch;
|
|
44
43
|
}
|
|
45
44
|
export declare function fetchEventSource(input: RequestInfo, { signal: inputSignal, headers: inputHeaders, onopen: inputOnOpen, onmessage, onclose, onerror, openWhenHidden, fetch: inputFetch, ...rest }: FetchEventSourceInit): Promise<void>;
|
|
45
|
+
export {};
|
package/force-app/main/default/staticresources/coveoheadless/definitions/utils/url-utils.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare class URLPath {
|
|
|
8
8
|
get hasParams(): number;
|
|
9
9
|
get href(): string;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
type PlatformCombination = {
|
|
12
12
|
env: 'dev';
|
|
13
13
|
region: 'us' | 'eu';
|
|
14
14
|
} | {
|
|
@@ -22,3 +22,4 @@ export type PlatformCombination = {
|
|
|
22
22
|
region: 'us' | 'eu' | 'au';
|
|
23
23
|
};
|
|
24
24
|
export type PlatformEnvironment = PlatformCombination['env'];
|
|
25
|
+
export {};
|
|
@@ -3,7 +3,6 @@ export declare const randomID: (prepend?: string, length?: number) => string;
|
|
|
3
3
|
export declare function isArray<T>(value: T | T[]): value is T[];
|
|
4
4
|
export declare function isEmptyString(str: string): boolean;
|
|
5
5
|
export declare function removeDuplicates<T>(arr: T[], predicate: (value: T) => string): any[];
|
|
6
|
-
export declare function encodedBtoa(stringToEncode: string): string;
|
|
7
6
|
export declare function omit<T>(key: keyof T, obj: T): Omit<T, keyof T>;
|
|
8
7
|
export declare function getObjectHash<T>(obj: T): string;
|
|
9
8
|
/**
|