@empathyco/x-components 6.0.0-alpha.231 → 6.0.0-alpha.233
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/CHANGELOG.md +14 -0
- package/core/index.js +1 -0
- package/core/index.js.map +1 -1
- package/docs/API-reference/api/x-components.aimutations.md +1 -1
- package/docs/API-reference/api/x-components.aimutations.setsearchtotalresults.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavepartialresultsenrichment.md +17 -0
- package/docs/API-reference/api/x-components.cancelfetchandsaveresultsenrichment.md +17 -0
- package/docs/API-reference/api/x-components.defaultresultsenrichmentservice._constructor_.md +13 -0
- package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.fetchresults.md +52 -0
- package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.instance.md +13 -0
- package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.md +164 -0
- package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.store.md +11 -0
- package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.updateresults.md +66 -0
- package/docs/API-reference/api/x-components.fetchandsavepartialresultsenrichment.md +66 -0
- package/docs/API-reference/api/x-components.fetchandsavepartialresultsenrichmentwire.md +13 -0
- package/docs/API-reference/api/x-components.fetchandsaveresultsenrichment.md +66 -0
- package/docs/API-reference/api/x-components.fetchandsaveresultsenrichmentwire.md +13 -0
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
- package/docs/API-reference/api/x-components.md +88 -0
- package/docs/API-reference/api/x-components.recommendationsactions.cancelfetchandsaverecommendationsenrichment.md +13 -0
- package/docs/API-reference/api/x-components.recommendationsactions.fetchandsaverecommendationsenrichment.md +13 -0
- package/docs/API-reference/api/x-components.recommendationsactions.md +38 -0
- package/docs/API-reference/api/x-components.recommendationsmutations.md +19 -0
- package/docs/API-reference/api/x-components.recommendationsmutations.updaterecommendationsfromenrichment.md +13 -0
- package/docs/API-reference/api/x-components.resultsenrichmentservice.fetchresults.md +13 -0
- package/docs/API-reference/api/x-components.resultsenrichmentservice.md +77 -0
- package/docs/API-reference/api/x-components.resultsenrichmentservice.updateresults.md +13 -0
- package/docs/API-reference/api/x-components.searchactions.fetchandsavepartialresultsenrichment.md +13 -0
- package/docs/API-reference/api/x-components.searchactions.fetchandsaveresultsenrichment.md +13 -0
- package/docs/API-reference/api/x-components.searchactions.md +38 -0
- package/docs/API-reference/api/x-components.searchmutations.md +38 -0
- package/docs/API-reference/api/x-components.searchmutations.updatepartialresultsfromenrichment.md +13 -0
- package/docs/API-reference/api/x-components.searchmutations.updateresultsfromenrichment.md +13 -0
- package/docs/API-reference/api/x-components.searchxevents.md +19 -0
- package/docs/API-reference/api/x-components.searchxevents.partialresultschanged.md +13 -0
- package/docs/API-reference/api/x-components.simplefilter.md +1 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
- package/js/index.js +4 -1
- package/js/index.js.map +1 -1
- package/js/services/results-enrichment.service.js +37 -0
- package/js/services/results-enrichment.service.js.map +1 -0
- package/js/x-modules/ai/store/getters/suggestions-request.getter.js +1 -1
- package/js/x-modules/ai/store/getters/suggestions-request.getter.js.map +1 -1
- package/js/x-modules/ai/store/module.js +4 -5
- package/js/x-modules/ai/store/module.js.map +1 -1
- package/js/x-modules/ai/wiring.js +9 -11
- package/js/x-modules/ai/wiring.js.map +1 -1
- package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.js +30 -0
- package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.js.map +1 -0
- package/js/x-modules/recommendations/store/module.js +7 -0
- package/js/x-modules/recommendations/store/module.js.map +1 -1
- package/js/x-modules/recommendations/wiring.js +9 -0
- package/js/x-modules/recommendations/wiring.js.map +1 -1
- package/js/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.js +33 -0
- package/js/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.js.map +1 -0
- package/js/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.js +28 -0
- package/js/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.js.map +1 -0
- package/js/x-modules/search/store/emitters.js +1 -0
- package/js/x-modules/search/store/emitters.js.map +1 -1
- package/js/x-modules/search/store/module.js +15 -0
- package/js/x-modules/search/store/module.js.map +1 -1
- package/js/x-modules/search/wiring.js +17 -1
- package/js/x-modules/search/wiring.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +969 -71
- package/report/x-components.api.md +65 -15
- package/search/index.js +3 -1
- package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
- package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/src/services/index.d.ts +1 -0
- package/types/src/services/index.d.ts.map +1 -1
- package/types/src/services/results-enrichment.service.d.ts +31 -0
- package/types/src/services/results-enrichment.service.d.ts.map +1 -0
- package/types/src/services/services.types.d.ts +21 -0
- package/types/src/services/services.types.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/module.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/types.d.ts +1 -2
- package/types/src/x-modules/ai/store/types.d.ts.map +1 -1
- package/types/src/x-modules/ai/wiring.d.ts +4 -8
- package/types/src/x-modules/ai/wiring.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.d.ts +17 -0
- package/types/src/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.d.ts.map +1 -0
- package/types/src/x-modules/recommendations/store/module.d.ts.map +1 -1
- package/types/src/x-modules/recommendations/store/types.d.ts +17 -0
- package/types/src/x-modules/recommendations/store/types.d.ts.map +1 -1
- package/types/src/x-modules/recommendations/wiring.d.ts +3 -0
- package/types/src/x-modules/recommendations/wiring.d.ts.map +1 -1
- package/types/src/x-modules/search/events.types.d.ts +6 -1
- package/types/src/x-modules/search/events.types.d.ts.map +1 -1
- package/types/src/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.d.ts +17 -0
- package/types/src/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.d.ts.map +1 -0
- package/types/src/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.d.ts +17 -0
- package/types/src/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.d.ts.map +1 -0
- package/types/src/x-modules/search/store/actions/index.d.ts +2 -0
- package/types/src/x-modules/search/store/actions/index.d.ts.map +1 -1
- package/types/src/x-modules/search/store/emitters.d.ts +1 -0
- package/types/src/x-modules/search/store/emitters.d.ts.map +1 -1
- package/types/src/x-modules/search/store/module.d.ts.map +1 -1
- package/types/src/x-modules/search/store/types.d.ts +24 -0
- package/types/src/x-modules/search/store/types.d.ts.map +1 -1
- package/types/src/x-modules/search/wiring.d.ts +16 -0
- package/types/src/x-modules/search/wiring.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.0.0-alpha.233](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.232...@empathyco/x-components@6.0.0-alpha.233) (2026-04-02)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* define result enrichment for Results, PartialResults and Recommendations (#2065)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [6.0.0-alpha.232](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.231...@empathyco/x-components@6.0.0-alpha.232) (2026-04-01)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* wait for search response before triggering AI requests (#2067)
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [6.0.0-alpha.231](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.230...@empathyco/x-components@6.0.0-alpha.231) (2026-04-01)
|
|
7
21
|
|
|
8
22
|
### Features
|
package/core/index.js
CHANGED
|
@@ -165,6 +165,7 @@ export { isSimpleSelector, registerStoreEmitters } from '../js/plugins/x-emitter
|
|
|
165
165
|
export { XPlugin, xPlugin } from '../js/plugins/x-plugin.js';
|
|
166
166
|
export { assertXPluginOptionsAreValid, getGetterPath } from '../js/plugins/x-plugin.utils.js';
|
|
167
167
|
export { DirectionalFocusNavigationService } from '../js/services/directional-focus-navigation.service.js';
|
|
168
|
+
export { DefaultResultsEnrichmentService } from '../js/services/results-enrichment.service.js';
|
|
168
169
|
export { mergeConfig, setConfig } from '../js/store/utils/config-store.utils.js';
|
|
169
170
|
export { createFetchAndSaveActions } from '../js/store/utils/fetch-and-save-action.utils.js';
|
|
170
171
|
export { cleanGettersProxyCache, getGettersProxy, getGettersProxyFromModule } from '../js/store/utils/getters-proxy.utils.js';
|
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [cancelFetchAndSavePartialResultsEnrichment](./x-components.cancelfetchandsavepartialresultsenrichment.md)
|
|
4
|
+
|
|
5
|
+
## cancelFetchAndSavePartialResultsEnrichment() function
|
|
6
|
+
|
|
7
|
+
Default implementation for action.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
cancelFetchAndSavePartialResultsEnrichment: () => void
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
void
|
|
17
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [cancelFetchAndSaveResultsEnrichment](./x-components.cancelfetchandsaveresultsenrichment.md)
|
|
4
|
+
|
|
5
|
+
## cancelFetchAndSaveResultsEnrichment() function
|
|
6
|
+
|
|
7
|
+
Default implementation for action.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
cancelFetchAndSaveResultsEnrichment: () => void
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
void
|
|
17
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultResultsEnrichmentService](./x-components.defaultresultsenrichmentservice.md) > [(constructor)](./x-components.defaultresultsenrichmentservice._constructor_.md)
|
|
4
|
+
|
|
5
|
+
## DefaultResultsEnrichmentService.(constructor)
|
|
6
|
+
|
|
7
|
+
Constructs a new instance of the `DefaultResultsEnrichmentService` class
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
constructor();
|
|
13
|
+
```
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultResultsEnrichmentService](./x-components.defaultresultsenrichmentservice.md) > [fetchResults](./x-components.defaultresultsenrichmentservice.fetchresults.md)
|
|
4
|
+
|
|
5
|
+
## DefaultResultsEnrichmentService.fetchResults() method
|
|
6
|
+
|
|
7
|
+
Fetches the enrichment results.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchResults(_: Result[]): Promise<any[]>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
\_
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
Result\[\]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
48
|
+
|
|
49
|
+
**Returns:**
|
|
50
|
+
|
|
51
|
+
Promise<any\[\]>
|
|
52
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultResultsEnrichmentService](./x-components.defaultresultsenrichmentservice.md) > [instance](./x-components.defaultresultsenrichmentservice.instance.md)
|
|
4
|
+
|
|
5
|
+
## DefaultResultsEnrichmentService.instance property
|
|
6
|
+
|
|
7
|
+
Global instance of the [ResultsEnrichmentService](./x-components.resultsenrichmentservice.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
static instance: ResultsEnrichmentService;
|
|
13
|
+
```
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultResultsEnrichmentService](./x-components.defaultresultsenrichmentservice.md)
|
|
4
|
+
|
|
5
|
+
## DefaultResultsEnrichmentService class
|
|
6
|
+
|
|
7
|
+
Default implementation for the [ResultsEnrichmentService](./x-components.resultsenrichmentservice.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare class DefaultResultsEnrichmentService implements ResultsEnrichmentService
|
|
13
|
+
```
|
|
14
|
+
**Implements:** [ResultsEnrichmentService](./x-components.resultsenrichmentservice.md)
|
|
15
|
+
|
|
16
|
+
## Constructors
|
|
17
|
+
|
|
18
|
+
<table><thead><tr><th>
|
|
19
|
+
|
|
20
|
+
Constructor
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</th><th>
|
|
24
|
+
|
|
25
|
+
Modifiers
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</th><th>
|
|
29
|
+
|
|
30
|
+
Description
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
</th></tr></thead>
|
|
34
|
+
<tbody><tr><td>
|
|
35
|
+
|
|
36
|
+
[(constructor)()](./x-components.defaultresultsenrichmentservice._constructor_.md)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
</td><td>
|
|
43
|
+
|
|
44
|
+
Constructs a new instance of the `DefaultResultsEnrichmentService` class
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
</td></tr>
|
|
48
|
+
</tbody></table>
|
|
49
|
+
|
|
50
|
+
## Properties
|
|
51
|
+
|
|
52
|
+
<table><thead><tr><th>
|
|
53
|
+
|
|
54
|
+
Property
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</th><th>
|
|
58
|
+
|
|
59
|
+
Modifiers
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</th><th>
|
|
63
|
+
|
|
64
|
+
Type
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
</th><th>
|
|
68
|
+
|
|
69
|
+
Description
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
</th></tr></thead>
|
|
73
|
+
<tbody><tr><td>
|
|
74
|
+
|
|
75
|
+
[instance](./x-components.defaultresultsenrichmentservice.instance.md)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td><td>
|
|
79
|
+
|
|
80
|
+
`static`
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</td><td>
|
|
84
|
+
|
|
85
|
+
[ResultsEnrichmentService](./x-components.resultsenrichmentservice.md)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
</td><td>
|
|
89
|
+
|
|
90
|
+
Global instance of the [ResultsEnrichmentService](./x-components.resultsenrichmentservice.md)<!-- -->.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</td></tr>
|
|
94
|
+
<tr><td>
|
|
95
|
+
|
|
96
|
+
[store](./x-components.defaultresultsenrichmentservice.store.md)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
</td><td>
|
|
100
|
+
|
|
101
|
+
`protected`
|
|
102
|
+
|
|
103
|
+
`readonly`
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</td><td>
|
|
107
|
+
|
|
108
|
+
Store<[RootXStoreState](./x-components.rootxstorestate.md)<!-- -->>
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</td><td>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</td></tr>
|
|
115
|
+
</tbody></table>
|
|
116
|
+
|
|
117
|
+
## Methods
|
|
118
|
+
|
|
119
|
+
<table><thead><tr><th>
|
|
120
|
+
|
|
121
|
+
Method
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
</th><th>
|
|
125
|
+
|
|
126
|
+
Modifiers
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</th><th>
|
|
130
|
+
|
|
131
|
+
Description
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</th></tr></thead>
|
|
135
|
+
<tbody><tr><td>
|
|
136
|
+
|
|
137
|
+
[fetchResults(\_)](./x-components.defaultresultsenrichmentservice.fetchresults.md)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
</td><td>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
</td><td>
|
|
144
|
+
|
|
145
|
+
Fetches the enrichment results.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
</td></tr>
|
|
149
|
+
<tr><td>
|
|
150
|
+
|
|
151
|
+
[updateResults(\_, \_\_)](./x-components.defaultresultsenrichmentservice.updateresults.md)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</td><td>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</td><td>
|
|
158
|
+
|
|
159
|
+
Updates the results with the enrichment results. Updates via mutation.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</td></tr>
|
|
163
|
+
</tbody></table>
|
|
164
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultResultsEnrichmentService](./x-components.defaultresultsenrichmentservice.md) > [store](./x-components.defaultresultsenrichmentservice.store.md)
|
|
4
|
+
|
|
5
|
+
## DefaultResultsEnrichmentService.store property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
protected get store(): Store<RootXStoreState>;
|
|
11
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultResultsEnrichmentService](./x-components.defaultresultsenrichmentservice.md) > [updateResults](./x-components.defaultresultsenrichmentservice.updateresults.md)
|
|
4
|
+
|
|
5
|
+
## DefaultResultsEnrichmentService.updateResults() method
|
|
6
|
+
|
|
7
|
+
Updates the results with the enrichment results. Updates via mutation.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
updateResults(_: Result[], __: any[]): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
\_
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
Result\[\]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
<tr><td>
|
|
48
|
+
|
|
49
|
+
\_\_
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
any\[\]
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
62
|
+
|
|
63
|
+
**Returns:**
|
|
64
|
+
|
|
65
|
+
void
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSavePartialResultsEnrichment](./x-components.fetchandsavepartialresultsenrichment.md)
|
|
4
|
+
|
|
5
|
+
## fetchAndSavePartialResultsEnrichment() function
|
|
6
|
+
|
|
7
|
+
Default implementation for [SearchActions.fetchAndSavePartialResultsEnrichment](./x-components.searchactions.fetchandsavepartialresultsenrichment.md) action.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSavePartialResultsEnrichment: (context: SearchActionContext, request: PartialResult[]) => void | Promise<void>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
context
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[SearchActionContext](./x-components.searchactioncontext.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
<tr><td>
|
|
48
|
+
|
|
49
|
+
request
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
PartialResult\[\]
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
62
|
+
|
|
63
|
+
**Returns:**
|
|
64
|
+
|
|
65
|
+
void \| Promise<void>
|
|
66
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSavePartialResultsEnrichmentWire](./x-components.fetchandsavepartialresultsenrichmentwire.md)
|
|
4
|
+
|
|
5
|
+
## fetchAndSavePartialResultsEnrichmentWire variable
|
|
6
|
+
|
|
7
|
+
Requests and stores the enrichment results for the partial results.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSavePartialResultsEnrichmentWire: import("../../wiring").Wire<import("@empathyco/x-types").PartialResult[]>
|
|
13
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSaveResultsEnrichment](./x-components.fetchandsaveresultsenrichment.md)
|
|
4
|
+
|
|
5
|
+
## fetchAndSaveResultsEnrichment() function
|
|
6
|
+
|
|
7
|
+
Default implementation for [SearchActions.fetchAndSaveResultsEnrichment](./x-components.searchactions.fetchandsaveresultsenrichment.md) action.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveResultsEnrichment: (context: SearchActionContext, request: Result[]) => void | Promise<void>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
context
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[SearchActionContext](./x-components.searchactioncontext.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
<tr><td>
|
|
48
|
+
|
|
49
|
+
request
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
Result\[\]
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
62
|
+
|
|
63
|
+
**Returns:**
|
|
64
|
+
|
|
65
|
+
void \| Promise<void>
|
|
66
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSaveResultsEnrichmentWire](./x-components.fetchandsaveresultsenrichmentwire.md)
|
|
4
|
+
|
|
5
|
+
## fetchAndSaveResultsEnrichmentWire variable
|
|
6
|
+
|
|
7
|
+
Requests and stores the enrichment results for the results.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveResultsEnrichmentWire: import("../../wiring").Wire<import("@empathyco/x-types").Result[]>
|
|
13
|
+
```
|
|
@@ -150,6 +150,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
150
150
|
UserTalked?: string | undefined;
|
|
151
151
|
FacetsChanged?: import("@empathyco/x-types").Facet[] | undefined;
|
|
152
152
|
PageChanged?: number | undefined;
|
|
153
|
+
PartialResultsChanged?: import("@empathyco/x-types").PartialResult[] | undefined;
|
|
153
154
|
ReloadSearchRequested?: void | undefined;
|
|
154
155
|
ResultsChanged?: import("@empathyco/x-types").Result[] | undefined;
|
|
155
156
|
SearchRequestChanged?: import("../../../search").InternalSearchRequest | null | undefined;
|