@coveo/quantic 3.21.1 → 3.21.2-pre.41f1eb2e37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/force-app/main/default/lwc/quanticDateFacet/quanticDateFacet.html +4 -4
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.html +3 -3
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.js +3 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +10 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +19 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +269 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/static-filter-set/static-filter-set-selectors.d.ts +27 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +12 -10
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +11 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +9 -7
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ThunkDispatch, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
2
3
|
import { GeneratedContentFormat } from '../../features/generated-answer/generated-response-format.js';
|
|
3
4
|
import { SearchAppState } from '../../state/search-app-state.js';
|
|
4
5
|
import { ConfigurationSection, GeneratedAnswerSection, InsightConfigurationSection, TabSection } from '../../state/state-sections.js';
|
|
@@ -60,7 +61,22 @@ export declare const selectAnswerTriggerParams: ((state: any, ...params: any[])
|
|
|
60
61
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
61
62
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
62
63
|
};
|
|
63
|
-
export declare const constructAnswerQueryParams: (state: StateNeededByAnswerAPI, usage: "fetch" | "select") => {
|
|
64
|
+
export declare const constructAnswerQueryParams: (state: StateNeededByAnswerAPI, usage: "fetch" | "select", navigatorContext: NavigatorContext) => {
|
|
65
|
+
analytics?: {
|
|
66
|
+
actionCause?: string;
|
|
67
|
+
customData?: object;
|
|
68
|
+
clientId: string;
|
|
69
|
+
deviceId?: string;
|
|
70
|
+
pageId?: string;
|
|
71
|
+
clientTimestamp: string;
|
|
72
|
+
documentReferrer: string | null;
|
|
73
|
+
originContext: string;
|
|
74
|
+
userDisplayName?: string;
|
|
75
|
+
documentLocation?: string | null;
|
|
76
|
+
trackingId?: string;
|
|
77
|
+
capture?: boolean;
|
|
78
|
+
source?: string[];
|
|
79
|
+
};
|
|
64
80
|
tab: string;
|
|
65
81
|
numberOfResults?: number | undefined;
|
|
66
82
|
firstResult?: number | undefined;
|
|
@@ -87,8 +103,8 @@ export declare const constructAnswerQueryParams: (state: StateNeededByAnswerAPI,
|
|
|
87
103
|
aq?: string | undefined;
|
|
88
104
|
q: string | undefined;
|
|
89
105
|
};
|
|
90
|
-
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>;
|
|
91
|
-
export declare const selectAnswer: (state: StateNeededByAnswerAPI) => ({
|
|
106
|
+
export declare const fetchAnswer: (state: StateNeededByAnswerAPI, navigatorContext: NavigatorContext) => import("redux-thunk").ThunkAction<import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<Partial<SearchRequest>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, never, GeneratedAnswerStream, "answer">>, any, any, UnknownAction>;
|
|
107
|
+
export declare const selectAnswer: (state: StateNeededByAnswerAPI, navigatorContext?: NavigatorContext) => ({
|
|
92
108
|
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
93
109
|
originalArgs?: undefined | undefined;
|
|
94
110
|
data?: undefined | undefined;
|
|
@@ -2,6 +2,10 @@ import { StateNeededByAnswerAPI } from '../stream-answer-api.js';
|
|
|
2
2
|
export declare const streamAnswerAPIStateMock: StateNeededByAnswerAPI;
|
|
3
3
|
export declare const streamAnswerAPIStateMockWithATabWithAnExpression: StateNeededByAnswerAPI;
|
|
4
4
|
export declare const streamAnswerAPIStateMockWithoutAnyTab: StateNeededByAnswerAPI;
|
|
5
|
+
export declare const streamAnswerAPIStateMockWithStaticFiltersSelected: StateNeededByAnswerAPI;
|
|
6
|
+
export declare const streamAnswerAPIStateMockWithNonValidFilters: StateNeededByAnswerAPI;
|
|
7
|
+
export declare const streamAnswerAPIStateMockWithoutAnyFilters: StateNeededByAnswerAPI;
|
|
8
|
+
export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpression: StateNeededByAnswerAPI;
|
|
5
9
|
export declare const expectedStreamAnswerAPIParam: {
|
|
6
10
|
q: string;
|
|
7
11
|
aq: string;
|
|
@@ -111,6 +115,15 @@ export declare const expectedStreamAnswerAPIParam: {
|
|
|
111
115
|
numberOfResults: number;
|
|
112
116
|
firstResult: number;
|
|
113
117
|
tab: string;
|
|
118
|
+
analytics: {
|
|
119
|
+
capture: boolean;
|
|
120
|
+
clientId: string;
|
|
121
|
+
clientTimestamp: string;
|
|
122
|
+
documentLocation: string;
|
|
123
|
+
documentReferrer: string;
|
|
124
|
+
originContext: string;
|
|
125
|
+
source: string[];
|
|
126
|
+
};
|
|
114
127
|
};
|
|
115
128
|
export declare const expectedStreamAnswerAPIParamWithATabWithAnExpression: {
|
|
116
129
|
cq: string;
|
|
@@ -221,6 +234,15 @@ export declare const expectedStreamAnswerAPIParamWithATabWithAnExpression: {
|
|
|
221
234
|
enableDidYouMean: boolean;
|
|
222
235
|
numberOfResults: number;
|
|
223
236
|
firstResult: number;
|
|
237
|
+
analytics: {
|
|
238
|
+
capture: boolean;
|
|
239
|
+
clientId: string;
|
|
240
|
+
clientTimestamp: string;
|
|
241
|
+
documentLocation: string;
|
|
242
|
+
documentReferrer: string;
|
|
243
|
+
originContext: string;
|
|
244
|
+
source: string[];
|
|
245
|
+
};
|
|
224
246
|
};
|
|
225
247
|
export declare const expectedStreamAnswerAPIParamWithoutAnyTab: {
|
|
226
248
|
tab: string;
|
|
@@ -331,4 +353,251 @@ export declare const expectedStreamAnswerAPIParamWithoutAnyTab: {
|
|
|
331
353
|
enableDidYouMean: boolean;
|
|
332
354
|
numberOfResults: number;
|
|
333
355
|
firstResult: number;
|
|
356
|
+
analytics: {
|
|
357
|
+
capture: boolean;
|
|
358
|
+
clientId: string;
|
|
359
|
+
clientTimestamp: string;
|
|
360
|
+
documentLocation: string;
|
|
361
|
+
documentReferrer: string;
|
|
362
|
+
originContext: string;
|
|
363
|
+
source: string[];
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
export declare const expectedStreamAnswerAPIParamWithStaticFiltersSelected: {
|
|
367
|
+
cq: string;
|
|
368
|
+
q: string;
|
|
369
|
+
aq: string;
|
|
370
|
+
dq: string;
|
|
371
|
+
lq: string;
|
|
372
|
+
pipelineRuleParameters: {
|
|
373
|
+
mlGenerativeQuestionAnswering: {
|
|
374
|
+
responseFormat: {
|
|
375
|
+
contentFormat: string[];
|
|
376
|
+
};
|
|
377
|
+
citationsFieldToInclude: never[];
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
searchHub: string;
|
|
381
|
+
facets: ({
|
|
382
|
+
filterFacetCount: boolean;
|
|
383
|
+
injectionDepth: number;
|
|
384
|
+
numberOfValues: number;
|
|
385
|
+
sortCriteria: string;
|
|
386
|
+
resultsMustMatch: string;
|
|
387
|
+
type: string;
|
|
388
|
+
currentValues: never[];
|
|
389
|
+
freezeCurrentValues: boolean;
|
|
390
|
+
isFieldExpanded: boolean;
|
|
391
|
+
preventAutoSelect: boolean;
|
|
392
|
+
facetId: string;
|
|
393
|
+
field: string;
|
|
394
|
+
rangeAlgorithm?: undefined;
|
|
395
|
+
generateAutomaticRanges?: undefined;
|
|
396
|
+
delimitingCharacter?: undefined;
|
|
397
|
+
basePath?: undefined;
|
|
398
|
+
filterByBasePath?: undefined;
|
|
399
|
+
} | {
|
|
400
|
+
filterFacetCount: boolean;
|
|
401
|
+
injectionDepth: number;
|
|
402
|
+
numberOfValues: number;
|
|
403
|
+
sortCriteria: string;
|
|
404
|
+
rangeAlgorithm: string;
|
|
405
|
+
resultsMustMatch: string;
|
|
406
|
+
currentValues: {
|
|
407
|
+
start: string;
|
|
408
|
+
end: string;
|
|
409
|
+
endInclusive: boolean;
|
|
410
|
+
state: string;
|
|
411
|
+
}[];
|
|
412
|
+
preventAutoSelect: boolean;
|
|
413
|
+
type: string;
|
|
414
|
+
facetId: string;
|
|
415
|
+
field: string;
|
|
416
|
+
generateAutomaticRanges: boolean;
|
|
417
|
+
freezeCurrentValues?: undefined;
|
|
418
|
+
isFieldExpanded?: undefined;
|
|
419
|
+
delimitingCharacter?: undefined;
|
|
420
|
+
basePath?: undefined;
|
|
421
|
+
filterByBasePath?: undefined;
|
|
422
|
+
} | {
|
|
423
|
+
delimitingCharacter: string;
|
|
424
|
+
filterFacetCount: boolean;
|
|
425
|
+
injectionDepth: number;
|
|
426
|
+
numberOfValues: number;
|
|
427
|
+
sortCriteria: string;
|
|
428
|
+
basePath: never[];
|
|
429
|
+
filterByBasePath: boolean;
|
|
430
|
+
resultsMustMatch: string;
|
|
431
|
+
currentValues: never[];
|
|
432
|
+
preventAutoSelect: boolean;
|
|
433
|
+
type: string;
|
|
434
|
+
facetId: string;
|
|
435
|
+
field: string;
|
|
436
|
+
freezeCurrentValues?: undefined;
|
|
437
|
+
isFieldExpanded?: undefined;
|
|
438
|
+
rangeAlgorithm?: undefined;
|
|
439
|
+
generateAutomaticRanges?: undefined;
|
|
440
|
+
} | {
|
|
441
|
+
filterFacetCount: boolean;
|
|
442
|
+
injectionDepth: number;
|
|
443
|
+
numberOfValues: number;
|
|
444
|
+
sortCriteria: string;
|
|
445
|
+
rangeAlgorithm: string;
|
|
446
|
+
resultsMustMatch: string;
|
|
447
|
+
currentValues: {
|
|
448
|
+
endInclusive: boolean;
|
|
449
|
+
state: string;
|
|
450
|
+
start: number;
|
|
451
|
+
end: number;
|
|
452
|
+
}[];
|
|
453
|
+
preventAutoSelect: boolean;
|
|
454
|
+
type: string;
|
|
455
|
+
facetId: string;
|
|
456
|
+
field: string;
|
|
457
|
+
generateAutomaticRanges: boolean;
|
|
458
|
+
freezeCurrentValues?: undefined;
|
|
459
|
+
isFieldExpanded?: undefined;
|
|
460
|
+
delimitingCharacter?: undefined;
|
|
461
|
+
basePath?: undefined;
|
|
462
|
+
filterByBasePath?: undefined;
|
|
463
|
+
})[];
|
|
464
|
+
fieldsToInclude: string[];
|
|
465
|
+
queryCorrection: {
|
|
466
|
+
enabled: boolean;
|
|
467
|
+
options: {
|
|
468
|
+
automaticallyCorrect: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
enableDidYouMean: boolean;
|
|
472
|
+
numberOfResults: number;
|
|
473
|
+
firstResult: number;
|
|
474
|
+
tab: string;
|
|
475
|
+
analytics: {
|
|
476
|
+
capture: boolean;
|
|
477
|
+
clientId: string;
|
|
478
|
+
clientTimestamp: string;
|
|
479
|
+
documentLocation: string;
|
|
480
|
+
documentReferrer: string;
|
|
481
|
+
originContext: string;
|
|
482
|
+
source: string[];
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
export declare const expectedStreamAnswerAPIParamWithStaticFiltersAndTabExpression: {
|
|
486
|
+
cq: string;
|
|
487
|
+
q: string;
|
|
488
|
+
aq: string;
|
|
489
|
+
dq: string;
|
|
490
|
+
lq: string;
|
|
491
|
+
pipelineRuleParameters: {
|
|
492
|
+
mlGenerativeQuestionAnswering: {
|
|
493
|
+
responseFormat: {
|
|
494
|
+
contentFormat: string[];
|
|
495
|
+
};
|
|
496
|
+
citationsFieldToInclude: never[];
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
searchHub: string;
|
|
500
|
+
facets: ({
|
|
501
|
+
filterFacetCount: boolean;
|
|
502
|
+
injectionDepth: number;
|
|
503
|
+
numberOfValues: number;
|
|
504
|
+
sortCriteria: string;
|
|
505
|
+
resultsMustMatch: string;
|
|
506
|
+
type: string;
|
|
507
|
+
currentValues: never[];
|
|
508
|
+
freezeCurrentValues: boolean;
|
|
509
|
+
isFieldExpanded: boolean;
|
|
510
|
+
preventAutoSelect: boolean;
|
|
511
|
+
facetId: string;
|
|
512
|
+
field: string;
|
|
513
|
+
rangeAlgorithm?: undefined;
|
|
514
|
+
generateAutomaticRanges?: undefined;
|
|
515
|
+
delimitingCharacter?: undefined;
|
|
516
|
+
basePath?: undefined;
|
|
517
|
+
filterByBasePath?: undefined;
|
|
518
|
+
} | {
|
|
519
|
+
filterFacetCount: boolean;
|
|
520
|
+
injectionDepth: number;
|
|
521
|
+
numberOfValues: number;
|
|
522
|
+
sortCriteria: string;
|
|
523
|
+
rangeAlgorithm: string;
|
|
524
|
+
resultsMustMatch: string;
|
|
525
|
+
currentValues: {
|
|
526
|
+
start: string;
|
|
527
|
+
end: string;
|
|
528
|
+
endInclusive: boolean;
|
|
529
|
+
state: string;
|
|
530
|
+
}[];
|
|
531
|
+
preventAutoSelect: boolean;
|
|
532
|
+
type: string;
|
|
533
|
+
facetId: string;
|
|
534
|
+
field: string;
|
|
535
|
+
generateAutomaticRanges: boolean;
|
|
536
|
+
freezeCurrentValues?: undefined;
|
|
537
|
+
isFieldExpanded?: undefined;
|
|
538
|
+
delimitingCharacter?: undefined;
|
|
539
|
+
basePath?: undefined;
|
|
540
|
+
filterByBasePath?: undefined;
|
|
541
|
+
} | {
|
|
542
|
+
delimitingCharacter: string;
|
|
543
|
+
filterFacetCount: boolean;
|
|
544
|
+
injectionDepth: number;
|
|
545
|
+
numberOfValues: number;
|
|
546
|
+
sortCriteria: string;
|
|
547
|
+
basePath: never[];
|
|
548
|
+
filterByBasePath: boolean;
|
|
549
|
+
resultsMustMatch: string;
|
|
550
|
+
currentValues: never[];
|
|
551
|
+
preventAutoSelect: boolean;
|
|
552
|
+
type: string;
|
|
553
|
+
facetId: string;
|
|
554
|
+
field: string;
|
|
555
|
+
freezeCurrentValues?: undefined;
|
|
556
|
+
isFieldExpanded?: undefined;
|
|
557
|
+
rangeAlgorithm?: undefined;
|
|
558
|
+
generateAutomaticRanges?: undefined;
|
|
559
|
+
} | {
|
|
560
|
+
filterFacetCount: boolean;
|
|
561
|
+
injectionDepth: number;
|
|
562
|
+
numberOfValues: number;
|
|
563
|
+
sortCriteria: string;
|
|
564
|
+
rangeAlgorithm: string;
|
|
565
|
+
resultsMustMatch: string;
|
|
566
|
+
currentValues: {
|
|
567
|
+
endInclusive: boolean;
|
|
568
|
+
state: string;
|
|
569
|
+
start: number;
|
|
570
|
+
end: number;
|
|
571
|
+
}[];
|
|
572
|
+
preventAutoSelect: boolean;
|
|
573
|
+
type: string;
|
|
574
|
+
facetId: string;
|
|
575
|
+
field: string;
|
|
576
|
+
generateAutomaticRanges: boolean;
|
|
577
|
+
freezeCurrentValues?: undefined;
|
|
578
|
+
isFieldExpanded?: undefined;
|
|
579
|
+
delimitingCharacter?: undefined;
|
|
580
|
+
basePath?: undefined;
|
|
581
|
+
filterByBasePath?: undefined;
|
|
582
|
+
})[];
|
|
583
|
+
fieldsToInclude: string[];
|
|
584
|
+
queryCorrection: {
|
|
585
|
+
enabled: boolean;
|
|
586
|
+
options: {
|
|
587
|
+
automaticallyCorrect: string;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
enableDidYouMean: boolean;
|
|
591
|
+
numberOfResults: number;
|
|
592
|
+
firstResult: number;
|
|
593
|
+
tab: string;
|
|
594
|
+
analytics: {
|
|
595
|
+
capture: boolean;
|
|
596
|
+
clientId: string;
|
|
597
|
+
clientTimestamp: string;
|
|
598
|
+
documentLocation: string;
|
|
599
|
+
documentReferrer: string;
|
|
600
|
+
originContext: string;
|
|
601
|
+
source: string[];
|
|
602
|
+
};
|
|
334
603
|
};
|
|
@@ -17,7 +17,7 @@ export declare const buildSearchRequest: (state: StateNeededBySearchRequest, eve
|
|
|
17
17
|
facetOptions?: import("../../facet-options/facet-options.js").FacetOptions;
|
|
18
18
|
numberOfResults?: number;
|
|
19
19
|
firstResult?: number;
|
|
20
|
-
facets?: import("../../facets/
|
|
20
|
+
facets?: (import("../../facets/facet-set/interfaces/request.js").FacetRequest | import("../../facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../../facets/range-facets/date-facet-set/interfaces/request.js").DateFacetRequest | import("../../facets/range-facets/numeric-facet-set/interfaces/request.js").NumericFacetRequest)[] | undefined;
|
|
21
21
|
cq?: string;
|
|
22
22
|
queryCorrection?: {
|
|
23
23
|
enabled?: boolean;
|
|
@@ -18,7 +18,7 @@ export declare const buildSearchRequest: (state: StateNeededBySearchRequest, nav
|
|
|
18
18
|
facetOptions?: import("../facet-options/facet-options.js").FacetOptions;
|
|
19
19
|
numberOfResults?: number;
|
|
20
20
|
firstResult?: number;
|
|
21
|
-
facets?: import("../facets/
|
|
21
|
+
facets?: (import("../facets/facet-set/interfaces/request.js").FacetRequest | import("../facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../facets/range-facets/date-facet-set/interfaces/request.js").DateFacetRequest | import("../facets/range-facets/numeric-facet-set/interfaces/request.js").NumericFacetRequest)[] | undefined;
|
|
22
22
|
cq?: string;
|
|
23
23
|
queryCorrection?: {
|
|
24
24
|
enabled?: boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StaticFilterSection } from '../../state/state-sections.js';
|
|
2
|
+
/**
|
|
3
|
+
* Given a static filter state, returns an array of selected filter expressions.
|
|
4
|
+
* @param state The static filter state that contains the static filter set.
|
|
5
|
+
* @returns An array of filter expressions.
|
|
6
|
+
*/
|
|
7
|
+
export declare const selectStaticFilterExpressions: ((state: Partial<StaticFilterSection>) => string[]) & {
|
|
8
|
+
clearCache: () => void;
|
|
9
|
+
resultsCount: () => number;
|
|
10
|
+
resetResultsCount: () => void;
|
|
11
|
+
} & {
|
|
12
|
+
resultFunc: (resultFuncArgs_0: import("./static-filter-set-state.js").StaticFilterSetState | undefined) => string[];
|
|
13
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./static-filter-set-state.js").StaticFilterSetState | undefined) => string[]) & {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
resultsCount: () => number;
|
|
16
|
+
resetResultsCount: () => void;
|
|
17
|
+
};
|
|
18
|
+
lastResult: () => string[];
|
|
19
|
+
dependencies: [(state: Partial<StaticFilterSection>) => import("./static-filter-set-state.js").StaticFilterSetState | undefined];
|
|
20
|
+
recomputations: () => number;
|
|
21
|
+
resetRecomputations: () => void;
|
|
22
|
+
dependencyRecomputations: () => number;
|
|
23
|
+
resetDependencyRecomputations: () => void;
|
|
24
|
+
} & {
|
|
25
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
26
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
27
|
+
};
|