@coveo/quantic 3.22.1-pre.eb41b2c5d8 → 3.22.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/README.md +19 -3
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -10
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +173 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/core-facet/core-facet-actions-loader.d.ts +5 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/core-facet/core-facet-actions.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -12
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -11
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -9
- package/package.json +3 -3
|
@@ -6,6 +6,60 @@ export declare const streamAnswerAPIStateMockWithStaticFiltersSelected: StateNee
|
|
|
6
6
|
export declare const streamAnswerAPIStateMockWithNonValidFilters: StateNeededByAnswerAPI;
|
|
7
7
|
export declare const streamAnswerAPIStateMockWithoutAnyFilters: StateNeededByAnswerAPI;
|
|
8
8
|
export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpression: StateNeededByAnswerAPI;
|
|
9
|
+
export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpressionWithEmptyCQ: {
|
|
10
|
+
advancedSearchQueries: {
|
|
11
|
+
cq: string;
|
|
12
|
+
cqWasSet?: boolean | undefined;
|
|
13
|
+
aq?: string | undefined;
|
|
14
|
+
aqWasSet?: boolean | undefined;
|
|
15
|
+
lq?: string | undefined;
|
|
16
|
+
lqWasSet?: boolean | undefined;
|
|
17
|
+
dq?: string | undefined;
|
|
18
|
+
dqWasSet?: boolean | undefined;
|
|
19
|
+
defaultFilters?: import("../../../features/advanced-search-queries/advanced-search-queries-state.js").AdvancedSearchQueriesDefaultFiltersState | undefined;
|
|
20
|
+
};
|
|
21
|
+
searchHub: string;
|
|
22
|
+
pipeline: string;
|
|
23
|
+
answer: ReturnType<import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
24
|
+
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("../stream-answer-api.js").GeneratedAnswerStream, "answer">;
|
|
25
|
+
}, never, "answer">, import("redux").UnknownAction>>;
|
|
26
|
+
configuration: import("../../../features/configuration/configuration-state.js").ConfigurationState;
|
|
27
|
+
facetSet?: import("../../../features/facets/facet-set/facet-set-state.js").FacetSetState | undefined;
|
|
28
|
+
dateFacetSet?: import("../../../features/facets/range-facets/date-facet-set/date-facet-set-state.js").DateFacetSetState | undefined;
|
|
29
|
+
numericFacetSet?: import("../../../features/facets/range-facets/numeric-facet-set/numeric-facet-set-state.js").NumericFacetSetState | undefined;
|
|
30
|
+
categoryFacetSet?: import("../../../features/facets/category-facet-set/category-facet-set-state.js").CategoryFacetSetState | undefined;
|
|
31
|
+
automaticFacetSet?: import("../../../features/facets/automatic-facet-set/automatic-facet-set-state.js").AutomaticFacetSetState | undefined;
|
|
32
|
+
facetOptions?: import("../../../features/facet-options/facet-options-state.js").FacetOptionsState | undefined;
|
|
33
|
+
query?: import("../../../features/query/query-state.js").QueryState | undefined;
|
|
34
|
+
tabSet?: import("../../../features/tab-set/tab-set-state.js").TabSetState | undefined;
|
|
35
|
+
staticFilterSet?: import("../../../features/static-filter-set/static-filter-set-state.js").StaticFilterSetState | undefined;
|
|
36
|
+
pagination?: import("../../../features/pagination/pagination-state.js").PaginationState | undefined;
|
|
37
|
+
sortCriteria?: string | undefined;
|
|
38
|
+
context?: import("../../../features/context/context-state.js").ContextState | undefined;
|
|
39
|
+
dictionaryFieldContext?: import("../../../features/dictionary-field-context/dictionary-field-context-state.js").DictionaryFieldContextState | undefined;
|
|
40
|
+
querySet?: import("../../../features/query-set/query-set-state.js").QuerySetState | undefined;
|
|
41
|
+
debug?: boolean | undefined;
|
|
42
|
+
facetSearchSet?: import("../../../features/facets/facet-search-set/specific/specific-facet-search-set-state.js").SpecificFacetSearchSetState | undefined;
|
|
43
|
+
categoryFacetSearchSet?: import("../../../features/facets/facet-search-set/category/category-facet-search-set-state.js").CategoryFacetSearchSetState | undefined;
|
|
44
|
+
standaloneSearchBoxSet?: import("../../../features/standalone-search-box-set/standalone-search-box-set-state.js").StandaloneSearchBoxSetState | undefined;
|
|
45
|
+
querySuggest?: import("../../../features/query-suggest/query-suggest-state.js").QuerySuggestSet | undefined;
|
|
46
|
+
search?: import("../../../features/search/search-state.js").SearchState | undefined;
|
|
47
|
+
resultPreview?: import("../../../features/result-preview/result-preview-state.js").ResultPreviewState | undefined;
|
|
48
|
+
didYouMean?: import("../../../features/did-you-mean/did-you-mean-state.js").DidYouMeanState | undefined;
|
|
49
|
+
fields?: import("../../../features/fields/fields-state.js").FieldsState | undefined;
|
|
50
|
+
facetOrder?: import("../../../features/facets/facet-order/facet-order-state.js").FacetOrderState | undefined;
|
|
51
|
+
version?: string | undefined;
|
|
52
|
+
history?: import("../../../app/undoable.js").StateWithHistory<import("../../../features/history/history-state.js").HistoryState> | undefined;
|
|
53
|
+
folding?: import("../../../features/folding/folding-state.js").FoldingState | undefined;
|
|
54
|
+
triggers?: import("../../../features/triggers/triggers-state.js").TriggerState | undefined;
|
|
55
|
+
questionAnswering?: import("../../../features/question-answering/question-answering-state.js").QuestionAnsweringState | undefined;
|
|
56
|
+
recentResults?: import("../../../features/recent-results/recent-results-state.js").RecentResultsState | undefined;
|
|
57
|
+
recentQueries?: import("../../../features/recent-queries/recent-queries-state.js").RecentQueriesState | undefined;
|
|
58
|
+
excerptLength?: import("../../../features/excerpt-length/excerpt-length-state.js").ExcerptLengthState | undefined;
|
|
59
|
+
generatedAnswer: import("../../../index.js").GeneratedAnswerState;
|
|
60
|
+
instantResults?: import("../../../features/instant-results/instant-results-state.js").InstantResultsState | undefined;
|
|
61
|
+
insightConfiguration?: import("../../../features/insight-configuration/insight-configuration-state.js").InsightConfigurationState | undefined;
|
|
62
|
+
};
|
|
9
63
|
export declare const expectedStreamAnswerAPIParam: {
|
|
10
64
|
q: string;
|
|
11
65
|
aq: string;
|
|
@@ -601,3 +655,122 @@ export declare const expectedStreamAnswerAPIParamWithStaticFiltersAndTabExpressi
|
|
|
601
655
|
source: string[];
|
|
602
656
|
};
|
|
603
657
|
};
|
|
658
|
+
export declare const expectedStreamAnswerAPIParamWithStaticFiltersAndTabExpressionWithoutAdvancedCQ: {
|
|
659
|
+
cq: string;
|
|
660
|
+
q: string;
|
|
661
|
+
aq: string;
|
|
662
|
+
dq: string;
|
|
663
|
+
lq: string;
|
|
664
|
+
pipelineRuleParameters: {
|
|
665
|
+
mlGenerativeQuestionAnswering: {
|
|
666
|
+
responseFormat: {
|
|
667
|
+
contentFormat: string[];
|
|
668
|
+
};
|
|
669
|
+
citationsFieldToInclude: never[];
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
searchHub: string;
|
|
673
|
+
facets: ({
|
|
674
|
+
filterFacetCount: boolean;
|
|
675
|
+
injectionDepth: number;
|
|
676
|
+
numberOfValues: number;
|
|
677
|
+
sortCriteria: string;
|
|
678
|
+
resultsMustMatch: string;
|
|
679
|
+
type: string;
|
|
680
|
+
currentValues: never[];
|
|
681
|
+
freezeCurrentValues: boolean;
|
|
682
|
+
isFieldExpanded: boolean;
|
|
683
|
+
preventAutoSelect: boolean;
|
|
684
|
+
facetId: string;
|
|
685
|
+
field: string;
|
|
686
|
+
rangeAlgorithm?: undefined;
|
|
687
|
+
generateAutomaticRanges?: undefined;
|
|
688
|
+
delimitingCharacter?: undefined;
|
|
689
|
+
basePath?: undefined;
|
|
690
|
+
filterByBasePath?: undefined;
|
|
691
|
+
} | {
|
|
692
|
+
filterFacetCount: boolean;
|
|
693
|
+
injectionDepth: number;
|
|
694
|
+
numberOfValues: number;
|
|
695
|
+
sortCriteria: string;
|
|
696
|
+
rangeAlgorithm: string;
|
|
697
|
+
resultsMustMatch: string;
|
|
698
|
+
currentValues: {
|
|
699
|
+
start: string;
|
|
700
|
+
end: string;
|
|
701
|
+
endInclusive: boolean;
|
|
702
|
+
state: string;
|
|
703
|
+
}[];
|
|
704
|
+
preventAutoSelect: boolean;
|
|
705
|
+
type: string;
|
|
706
|
+
facetId: string;
|
|
707
|
+
field: string;
|
|
708
|
+
generateAutomaticRanges: boolean;
|
|
709
|
+
freezeCurrentValues?: undefined;
|
|
710
|
+
isFieldExpanded?: undefined;
|
|
711
|
+
delimitingCharacter?: undefined;
|
|
712
|
+
basePath?: undefined;
|
|
713
|
+
filterByBasePath?: undefined;
|
|
714
|
+
} | {
|
|
715
|
+
delimitingCharacter: string;
|
|
716
|
+
filterFacetCount: boolean;
|
|
717
|
+
injectionDepth: number;
|
|
718
|
+
numberOfValues: number;
|
|
719
|
+
sortCriteria: string;
|
|
720
|
+
basePath: never[];
|
|
721
|
+
filterByBasePath: boolean;
|
|
722
|
+
resultsMustMatch: string;
|
|
723
|
+
currentValues: never[];
|
|
724
|
+
preventAutoSelect: boolean;
|
|
725
|
+
type: string;
|
|
726
|
+
facetId: string;
|
|
727
|
+
field: string;
|
|
728
|
+
freezeCurrentValues?: undefined;
|
|
729
|
+
isFieldExpanded?: undefined;
|
|
730
|
+
rangeAlgorithm?: undefined;
|
|
731
|
+
generateAutomaticRanges?: undefined;
|
|
732
|
+
} | {
|
|
733
|
+
filterFacetCount: boolean;
|
|
734
|
+
injectionDepth: number;
|
|
735
|
+
numberOfValues: number;
|
|
736
|
+
sortCriteria: string;
|
|
737
|
+
rangeAlgorithm: string;
|
|
738
|
+
resultsMustMatch: string;
|
|
739
|
+
currentValues: {
|
|
740
|
+
endInclusive: boolean;
|
|
741
|
+
state: string;
|
|
742
|
+
start: number;
|
|
743
|
+
end: number;
|
|
744
|
+
}[];
|
|
745
|
+
preventAutoSelect: boolean;
|
|
746
|
+
type: string;
|
|
747
|
+
facetId: string;
|
|
748
|
+
field: string;
|
|
749
|
+
generateAutomaticRanges: boolean;
|
|
750
|
+
freezeCurrentValues?: undefined;
|
|
751
|
+
isFieldExpanded?: undefined;
|
|
752
|
+
delimitingCharacter?: undefined;
|
|
753
|
+
basePath?: undefined;
|
|
754
|
+
filterByBasePath?: undefined;
|
|
755
|
+
})[];
|
|
756
|
+
fieldsToInclude: string[];
|
|
757
|
+
queryCorrection: {
|
|
758
|
+
enabled: boolean;
|
|
759
|
+
options: {
|
|
760
|
+
automaticallyCorrect: string;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
enableDidYouMean: boolean;
|
|
764
|
+
numberOfResults: number;
|
|
765
|
+
firstResult: number;
|
|
766
|
+
tab: string;
|
|
767
|
+
analytics: {
|
|
768
|
+
capture: boolean;
|
|
769
|
+
clientId: string;
|
|
770
|
+
clientTimestamp: string;
|
|
771
|
+
documentLocation: string;
|
|
772
|
+
documentReferrer: string;
|
|
773
|
+
originContext: string;
|
|
774
|
+
source: string[];
|
|
775
|
+
};
|
|
776
|
+
};
|
|
@@ -10,11 +10,15 @@ export type { DeselectAllValuesInCoreFacetPayload, UpdateAutoSelectionForAllCore
|
|
|
10
10
|
*/
|
|
11
11
|
export interface CoreFacetActionsCreators {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Deselects all values in every facet.
|
|
14
14
|
*
|
|
15
15
|
* @returns A dispatchable action.
|
|
16
16
|
*/
|
|
17
17
|
clearAllCoreFacets(): PayloadAction<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes all facets in the state.
|
|
20
|
+
*/
|
|
21
|
+
deleteAllCoreFacets(): PayloadAction<void>;
|
|
18
22
|
/**
|
|
19
23
|
* Deselects all values in a given facet.
|
|
20
24
|
*
|
|
@@ -5,6 +5,7 @@ export declare const updateCoreFacetNumberOfValues: import("@reduxjs/toolkit").A
|
|
|
5
5
|
export type UpdateCoreFacetIsFieldExpandedPayload = UpdateFacetIsFieldExpandedActionCreatorPayload;
|
|
6
6
|
export declare const updateCoreFacetIsFieldExpanded: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: UpdateFacetIsFieldExpandedActionCreatorPayload], UpdateFacetIsFieldExpandedActionCreatorPayload, "commerce/facets/core/updateIsFieldExpanded", never, never>;
|
|
7
7
|
export declare const clearAllCoreFacets: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"commerce/facets/core/clearAll">;
|
|
8
|
+
export declare const deleteAllCoreFacets: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"commerce/facets/core/deleteAll">;
|
|
8
9
|
export type DeselectAllValuesInCoreFacetPayload = {
|
|
9
10
|
/**
|
|
10
11
|
* The unique identifier of the facet (e.g., `"1"`).
|