@empathyco/x-components 6.0.0-alpha.232 → 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.
Files changed (93) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/core/index.js +1 -0
  3. package/core/index.js.map +1 -1
  4. package/docs/API-reference/api/x-components.cancelfetchandsavepartialresultsenrichment.md +17 -0
  5. package/docs/API-reference/api/x-components.cancelfetchandsaveresultsenrichment.md +17 -0
  6. package/docs/API-reference/api/x-components.defaultresultsenrichmentservice._constructor_.md +13 -0
  7. package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.fetchresults.md +52 -0
  8. package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.instance.md +13 -0
  9. package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.md +164 -0
  10. package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.store.md +11 -0
  11. package/docs/API-reference/api/x-components.defaultresultsenrichmentservice.updateresults.md +66 -0
  12. package/docs/API-reference/api/x-components.fetchandsavepartialresultsenrichment.md +66 -0
  13. package/docs/API-reference/api/x-components.fetchandsavepartialresultsenrichmentwire.md +13 -0
  14. package/docs/API-reference/api/x-components.fetchandsaveresultsenrichment.md +66 -0
  15. package/docs/API-reference/api/x-components.fetchandsaveresultsenrichmentwire.md +13 -0
  16. package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
  17. package/docs/API-reference/api/x-components.md +88 -0
  18. package/docs/API-reference/api/x-components.recommendationsactions.cancelfetchandsaverecommendationsenrichment.md +13 -0
  19. package/docs/API-reference/api/x-components.recommendationsactions.fetchandsaverecommendationsenrichment.md +13 -0
  20. package/docs/API-reference/api/x-components.recommendationsactions.md +38 -0
  21. package/docs/API-reference/api/x-components.recommendationsmutations.md +19 -0
  22. package/docs/API-reference/api/x-components.recommendationsmutations.updaterecommendationsfromenrichment.md +13 -0
  23. package/docs/API-reference/api/x-components.resultsenrichmentservice.fetchresults.md +13 -0
  24. package/docs/API-reference/api/x-components.resultsenrichmentservice.md +77 -0
  25. package/docs/API-reference/api/x-components.resultsenrichmentservice.updateresults.md +13 -0
  26. package/docs/API-reference/api/x-components.searchactions.fetchandsavepartialresultsenrichment.md +13 -0
  27. package/docs/API-reference/api/x-components.searchactions.fetchandsaveresultsenrichment.md +13 -0
  28. package/docs/API-reference/api/x-components.searchactions.md +38 -0
  29. package/docs/API-reference/api/x-components.searchmutations.md +38 -0
  30. package/docs/API-reference/api/x-components.searchmutations.updatepartialresultsfromenrichment.md +13 -0
  31. package/docs/API-reference/api/x-components.searchmutations.updateresultsfromenrichment.md +13 -0
  32. package/docs/API-reference/api/x-components.searchxevents.md +19 -0
  33. package/docs/API-reference/api/x-components.searchxevents.partialresultschanged.md +13 -0
  34. package/docs/API-reference/api/x-components.simplefilter.md +1 -0
  35. package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
  36. package/js/index.js +4 -1
  37. package/js/index.js.map +1 -1
  38. package/js/services/results-enrichment.service.js +37 -0
  39. package/js/services/results-enrichment.service.js.map +1 -0
  40. package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.js +30 -0
  41. package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.js.map +1 -0
  42. package/js/x-modules/recommendations/store/module.js +7 -0
  43. package/js/x-modules/recommendations/store/module.js.map +1 -1
  44. package/js/x-modules/recommendations/wiring.js +9 -0
  45. package/js/x-modules/recommendations/wiring.js.map +1 -1
  46. package/js/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.js +33 -0
  47. package/js/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.js.map +1 -0
  48. package/js/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.js +28 -0
  49. package/js/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.js.map +1 -0
  50. package/js/x-modules/search/store/emitters.js +1 -0
  51. package/js/x-modules/search/store/emitters.js.map +1 -1
  52. package/js/x-modules/search/store/module.js +15 -0
  53. package/js/x-modules/search/store/module.js.map +1 -1
  54. package/js/x-modules/search/wiring.js +17 -1
  55. package/js/x-modules/search/wiring.js.map +1 -1
  56. package/package.json +2 -2
  57. package/report/x-components.api.json +912 -5
  58. package/report/x-components.api.md +60 -6
  59. package/search/index.js +3 -1
  60. package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
  61. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
  62. package/types/src/services/index.d.ts +1 -0
  63. package/types/src/services/index.d.ts.map +1 -1
  64. package/types/src/services/results-enrichment.service.d.ts +31 -0
  65. package/types/src/services/results-enrichment.service.d.ts.map +1 -0
  66. package/types/src/services/services.types.d.ts +21 -0
  67. package/types/src/services/services.types.d.ts.map +1 -1
  68. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
  69. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  70. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
  71. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  72. package/types/src/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.d.ts +17 -0
  73. package/types/src/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.d.ts.map +1 -0
  74. package/types/src/x-modules/recommendations/store/module.d.ts.map +1 -1
  75. package/types/src/x-modules/recommendations/store/types.d.ts +17 -0
  76. package/types/src/x-modules/recommendations/store/types.d.ts.map +1 -1
  77. package/types/src/x-modules/recommendations/wiring.d.ts +3 -0
  78. package/types/src/x-modules/recommendations/wiring.d.ts.map +1 -1
  79. package/types/src/x-modules/search/events.types.d.ts +6 -1
  80. package/types/src/x-modules/search/events.types.d.ts.map +1 -1
  81. package/types/src/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.d.ts +17 -0
  82. package/types/src/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.d.ts.map +1 -0
  83. package/types/src/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.d.ts +17 -0
  84. package/types/src/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.d.ts.map +1 -0
  85. package/types/src/x-modules/search/store/actions/index.d.ts +2 -0
  86. package/types/src/x-modules/search/store/actions/index.d.ts.map +1 -1
  87. package/types/src/x-modules/search/store/emitters.d.ts +1 -0
  88. package/types/src/x-modules/search/store/emitters.d.ts.map +1 -1
  89. package/types/src/x-modules/search/store/module.d.ts.map +1 -1
  90. package/types/src/x-modules/search/store/types.d.ts +24 -0
  91. package/types/src/x-modules/search/store/types.d.ts.map +1 -1
  92. package/types/src/x-modules/search/wiring.d.ts +16 -0
  93. package/types/src/x-modules/search/wiring.d.ts.map +1 -1
@@ -1918,6 +1918,9 @@ export const cancelFetchAndSaveIdentifierResultsWire: AnyWire;
1918
1918
  // @public
1919
1919
  export const cancelFetchAndSaveNextQueries: () => void;
1920
1920
 
1921
+ // @public
1922
+ export const cancelFetchAndSavePartialResultsEnrichment: () => void;
1923
+
1921
1924
  // @public
1922
1925
  export const cancelFetchAndSavePopularSearches: () => void;
1923
1926
 
@@ -1936,6 +1939,9 @@ export const cancelFetchAndSaveRelatedTags: () => void;
1936
1939
  // @public
1937
1940
  export const cancelFetchAndSaveRelatedTagsWire: AnyWire;
1938
1941
 
1942
+ // @public
1943
+ export const cancelFetchAndSaveResultsEnrichment: () => void;
1944
+
1939
1945
  // @public
1940
1946
  export const cancelFetchAndSaveSearchResponse: () => void;
1941
1947
 
@@ -2345,6 +2351,16 @@ export class DefaultFacetsService implements FacetsService {
2345
2351
  protected updateStore(facetsGroup: FacetsGroup): Filter[];
2346
2352
  }
2347
2353
 
2354
+ // @public
2355
+ export class DefaultResultsEnrichmentService implements ResultsEnrichmentService {
2356
+ constructor();
2357
+ fetchResults(_: Result[]): Promise<any[]>;
2358
+ static instance: ResultsEnrichmentService;
2359
+ // (undocumented)
2360
+ protected get store(): Store<RootXStoreState>;
2361
+ updateResults(_: Result[], __: any[]): void;
2362
+ }
2363
+
2348
2364
  // @public
2349
2365
  export interface DeviceActions {
2350
2366
  }
@@ -3275,6 +3291,14 @@ export const fetchAndSaveNextQueriesWire: Wire<NextQueriesRequest | null>;
3275
3291
  // @public
3276
3292
  export const fetchAndSaveNextQueryPreviewWire: AnyWire;
3277
3293
 
3294
+ // Warning: (ae-forgotten-export) The symbol "PartialResult" needs to be exported by the entry point index.d.ts
3295
+ //
3296
+ // @public
3297
+ export const fetchAndSavePartialResultsEnrichment: (context: SearchActionContext, request: PartialResult[]) => void | Promise<void>;
3298
+
3299
+ // @public
3300
+ export const fetchAndSavePartialResultsEnrichmentWire: Wire<PartialResult[]>;
3301
+
3278
3302
  // Warning: (ae-forgotten-export) The symbol "PopularSearchesRequest" needs to be exported by the entry point index.d.ts
3279
3303
  //
3280
3304
  // @public
@@ -3311,6 +3335,12 @@ export const fetchAndSaveRelatedTags: (context: RelatedTagsActionContext, reques
3311
3335
  // @public
3312
3336
  export const fetchAndSaveRelatedTagsWire: Wire<RelatedTagsRequest | null>;
3313
3337
 
3338
+ // @public
3339
+ export const fetchAndSaveResultsEnrichment: (context: SearchActionContext, request: Result[]) => void | Promise<void>;
3340
+
3341
+ // @public
3342
+ export const fetchAndSaveResultsEnrichmentWire: Wire<Result[]>;
3343
+
3314
3344
  // @public
3315
3345
  export const fetchAndSaveSearchResponse: (context: SearchActionContext, request: InternalSearchRequest | null) => void | Promise<void>;
3316
3346
 
@@ -3732,6 +3762,7 @@ UserPressedSearchButton?: string | undefined;
3732
3762
  UserTalked?: string | undefined;
3733
3763
  FacetsChanged?: Facet[] | undefined;
3734
3764
  PageChanged?: number | undefined;
3765
+ PartialResultsChanged?: PartialResult[] | undefined;
3735
3766
  ReloadSearchRequested?: void | undefined;
3736
3767
  ResultsChanged?: Result[] | undefined;
3737
3768
  SearchRequestChanged?: InternalSearchRequest | null | undefined;
@@ -5858,7 +5889,9 @@ export type RecommendationsActionContext = XActionContext<RecommendationsState,
5858
5889
  // @public
5859
5890
  export interface RecommendationsActions {
5860
5891
  cancelFetchAndSaveRecommendations: () => void;
5892
+ cancelFetchAndSaveRecommendationsEnrichment: () => void;
5861
5893
  fetchAndSaveRecommendations: (request: RecommendationsRequest | null) => void;
5894
+ fetchAndSaveRecommendationsEnrichment: (results: Result[]) => void;
5862
5895
  fetchRecommendations: (request: RecommendationsRequest | null) => Result[];
5863
5896
  }
5864
5897
 
@@ -5885,6 +5918,7 @@ export interface RecommendationsMutations extends StatusMutations, ConfigMutatio
5885
5918
  setParams: (params: Dictionary<unknown>) => void;
5886
5919
  setRecommendations: (recommendations: Result[]) => void;
5887
5920
  updateRecommendation: (recommendation: Partial<Result> & Pick<Result, 'id'>) => void;
5921
+ updateRecommendationsFromEnrichment: (enrichmentResults: any[]) => void;
5888
5922
  }
5889
5923
 
5890
5924
  // @public
@@ -5900,6 +5934,9 @@ export interface RecommendationsState extends StatusState {
5900
5934
 
5901
5935
  // @internal
5902
5936
  export const recommendationsWiring: {
5937
+ RecommendationsChanged: {
5938
+ fetchAndSaveRecommendationsEnrichmentWire: Wire<Result[]>;
5939
+ };
5903
5940
  RecommendationsRequestUpdated: {
5904
5941
  fetchAndSaveRecommendations: Wire<RecommendationsRequest | null>;
5905
5942
  };
@@ -6561,6 +6598,12 @@ export type ResultFeature = 'search' | 'topclicked_recommendations' | 'brand_rec
6561
6598
  // @public
6562
6599
  export type ResultOrigin = `${ResultFeature}:${FeatureLocation}`;
6563
6600
 
6601
+ // @public
6602
+ export interface ResultsEnrichmentService {
6603
+ fetchResults: (results: Result[]) => Promise<any[]>;
6604
+ updateResults: (results: Result[], enrichmentResults: any[]) => void;
6605
+ }
6606
+
6564
6607
  // @public
6565
6608
  export const ResultsList: DefineComponent<ExtractPropTypes< {
6566
6609
  animation: {
@@ -6832,6 +6875,8 @@ export type SearchActionContext = XActionContext<SearchState, SearchGetters, Sea
6832
6875
  // @public
6833
6876
  export interface SearchActions {
6834
6877
  cancelFetchAndSaveSearchResponse: () => void;
6878
+ fetchAndSavePartialResultsEnrichment: (partialResults: PartialResult[]) => void;
6879
+ fetchAndSaveResultsEnrichment: (results: Result[]) => void;
6835
6880
  fetchAndSaveSearchResponse: (request: InternalSearchRequest | null) => void;
6836
6881
  fetchSearchResponse: (request: SearchRequest) => SearchResponse;
6837
6882
  increasePageAppendingResults: () => void;
@@ -6959,6 +7004,7 @@ export const searchEmitters: {
6959
7004
  filter(newValue: Facet[], oldValue: Facet[]): boolean;
6960
7005
  };
6961
7006
  PageChanged: (state: SearchState) => number;
7007
+ PartialResultsChanged: (state: SearchState) => PartialResult[];
6962
7008
  ResultsChanged: (state: SearchState) => Result[];
6963
7009
  SearchRequestChanged: (_: SearchState, getters: Returns<GettersTree<SearchState, SearchGetters>>) => InternalSearchRequest | null;
6964
7010
  SearchRequestUpdated: (_: SearchState, getters: Returns<GettersTree<SearchState, SearchGetters>>) => InternalSearchRequest | null;
@@ -7117,7 +7163,9 @@ export interface SearchMutations extends StatusMutations, QueryMutations, Config
7117
7163
  setSpellcheck: (spellcheckedQuery: string) => void;
7118
7164
  setStats: (stats: Stats) => void;
7119
7165
  setTotalResults: (totalResults: number) => void;
7166
+ updatePartialResultsFromEnrichment: (enrichmentResults: any[]) => void;
7120
7167
  updateResult: (result: Partial<Result> & Pick<Result, 'id'>) => void;
7168
+ updateResultsFromEnrichment: (enrichmentResults: any[]) => void;
7121
7169
  }
7122
7170
 
7123
7171
  // @public
@@ -7159,6 +7207,9 @@ export const searchWiring: {
7159
7207
  setUrlParams: Wire<UrlParams>;
7160
7208
  saveOriginWire: AnyWire;
7161
7209
  };
7210
+ PartialResultsChanged: {
7211
+ fetchAndSavePartialResultsEnrichmentWire: Wire<PartialResult[]>;
7212
+ };
7162
7213
  UserAcceptedAQuery: {
7163
7214
  setSearchQuery: Wire<string>;
7164
7215
  saveOriginWire: AnyWire;
@@ -7196,6 +7247,7 @@ export const searchWiring: {
7196
7247
  };
7197
7248
  ResultsChanged: {
7198
7249
  resetAppending: AnyWire;
7250
+ fetchAndSaveResultsEnrichmentWire: Wire<Result[]>;
7199
7251
  };
7200
7252
  ReloadSearchRequested: {
7201
7253
  resetStateForReloadWire: AnyWire;
@@ -7234,6 +7286,7 @@ export const searchWiring: {
7234
7286
  export interface SearchXEvents {
7235
7287
  FacetsChanged: Facet[];
7236
7288
  PageChanged: number;
7289
+ PartialResultsChanged: PartialResult[];
7237
7290
  ReloadSearchRequested: void;
7238
7291
  ResultsChanged: Result[];
7239
7292
  SearchRequestChanged: InternalSearchRequest | null;
@@ -7823,6 +7876,7 @@ UserPressedSearchButton?: string | undefined;
7823
7876
  UserTalked?: string | undefined;
7824
7877
  FacetsChanged?: Facet[] | undefined;
7825
7878
  PageChanged?: number | undefined;
7879
+ PartialResultsChanged?: PartialResult[] | undefined;
7826
7880
  ReloadSearchRequested?: void | undefined;
7827
7881
  ResultsChanged?: Result[] | undefined;
7828
7882
  SearchRequestChanged?: InternalSearchRequest | null | undefined;
@@ -8169,6 +8223,7 @@ UserPressedSearchButton: (payload: string, metadata: WireMetadata) => unknown;
8169
8223
  UserTalked: (payload: string, metadata: WireMetadata) => unknown;
8170
8224
  FacetsChanged: (payload: Facet[], metadata: WireMetadata) => unknown;
8171
8225
  PageChanged: (payload: number, metadata: WireMetadata) => unknown;
8226
+ PartialResultsChanged: (payload: PartialResult[], metadata: WireMetadata) => unknown;
8172
8227
  ReloadSearchRequested: (payload: undefined, metadata: WireMetadata) => unknown;
8173
8228
  ResultsChanged: (payload: Result[], metadata: WireMetadata) => unknown;
8174
8229
  SearchRequestChanged: (payload: InternalSearchRequest | null, metadata: WireMetadata) => unknown;
@@ -9649,18 +9704,17 @@ export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModu
9649
9704
  // dist/types/src/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts:25:9 - (ae-forgotten-export) The symbol "EditableNumberRangeFilter_2" needs to be exported by the entry point index.d.ts
9650
9705
  // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:62:13 - (ae-forgotten-export) The symbol "ResultVariant" needs to be exported by the entry point index.d.ts
9651
9706
  // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:110:9 - (ae-forgotten-export) The symbol "NextQuery_2" needs to be exported by the entry point index.d.ts
9652
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:173:9 - (ae-forgotten-export) The symbol "Redirection_2" needs to be exported by the entry point index.d.ts
9653
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:174:9 - (ae-forgotten-export) The symbol "Promoted_2" needs to be exported by the entry point index.d.ts
9654
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:179:9 - (ae-forgotten-export) The symbol "SemanticQuery_2" needs to be exported by the entry point index.d.ts
9655
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:201:9 - (ae-forgotten-export) The symbol "RelatedPrompt_2" needs to be exported by the entry point index.d.ts
9707
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:174:9 - (ae-forgotten-export) The symbol "Redirection_2" needs to be exported by the entry point index.d.ts
9708
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:175:9 - (ae-forgotten-export) The symbol "Promoted_2" needs to be exported by the entry point index.d.ts
9709
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:180:9 - (ae-forgotten-export) The symbol "SemanticQuery_2" needs to be exported by the entry point index.d.ts
9710
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:202:9 - (ae-forgotten-export) The symbol "RelatedPrompt_2" needs to be exported by the entry point index.d.ts
9656
9711
  // dist/types/src/x-modules/facets/components/lists/selected-filters-list.vue.d.ts:27:5 - (ae-forgotten-export) The symbol "RenderFilter" needs to be exported by the entry point index.d.ts
9657
9712
  // dist/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts:62:9 - (ae-forgotten-export) The symbol "RelatedPromptNextQuery" needs to be exported by the entry point index.d.ts
9658
9713
  // dist/types/src/x-modules/search/components/banner.vue.d.ts:23:9 - (ae-forgotten-export) The symbol "Banner_2" needs to be exported by the entry point index.d.ts
9659
- // dist/types/src/x-modules/search/components/partial-results-list.vue.d.ts:27:5 - (ae-forgotten-export) The symbol "PartialResult" needs to be exported by the entry point index.d.ts
9660
9714
  // dist/types/src/x-modules/search/components/sort-list.vue.d.ts:29:5 - (ae-forgotten-export) The symbol "SortListItem" needs to be exported by the entry point index.d.ts
9661
9715
  // dist/types/src/x-modules/search/components/sort-picker-list.vue.d.ts:22:5 - (ae-forgotten-export) The symbol "SortPickerItem" needs to be exported by the entry point index.d.ts
9662
9716
  // src/x-modules/ai/store/emitters.ts:9:24 - (ae-forgotten-export) The symbol "AiSuggestionsSearchRequest" needs to be exported by the entry point index.d.ts
9663
- // src/x-modules/search/store/module.ts:148:32 - (ae-forgotten-export) The symbol "Stats" needs to be exported by the entry point index.d.ts
9717
+ // src/x-modules/search/store/module.ts:166:32 - (ae-forgotten-export) The symbol "Stats" needs to be exported by the entry point index.d.ts
9664
9718
  // src/x-modules/url/store/emitters.ts:57:1 - (ae-forgotten-export) The symbol "shouldPushUrl" needs to be exported by the entry point index.d.ts
9665
9719
  // src/x-modules/url/store/emitters.ts:64:1 - (ae-forgotten-export) The symbol "shouldReplaceUrl" needs to be exported by the entry point index.d.ts
9666
9720
 
package/search/index.js CHANGED
@@ -12,6 +12,8 @@ export { default as SortList } from '../js/x-modules/search/components/sort-list
12
12
  export { default as SortPickerList } from '../js/x-modules/search/components/sort-picker-list.vue.js';
13
13
  export { default as SpellcheckButton } from '../js/x-modules/search/components/spellcheck-button.vue.js';
14
14
  export { default as Spellcheck } from '../js/x-modules/search/components/spellcheck.vue.js';
15
+ export { cancelFetchAndSavePartialResultsEnrichment, fetchAndSavePartialResultsEnrichment } from '../js/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.js';
16
+ export { cancelFetchAndSaveResultsEnrichment, fetchAndSaveResultsEnrichment } from '../js/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.js';
15
17
  export { cancelFetchAndSaveSearchResponse, fetchAndSaveSearchResponse } from '../js/x-modules/search/store/actions/fetch-and-save-search-response.action.js';
16
18
  export { fetchSearchResponse } from '../js/x-modules/search/store/actions/fetch-search-response.action.js';
17
19
  export { increasePageAppendingResults } from '../js/x-modules/search/store/actions/increase-page-apending-results.action.js';
@@ -23,5 +25,5 @@ export { searchEmitters } from '../js/x-modules/search/store/emitters.js';
23
25
  export { query as searchQuery } from '../js/x-modules/search/store/getters/query.getter.js';
24
26
  export { request as searchRequest } from '../js/x-modules/search/store/getters/request.getter.js';
25
27
  export { resettableState, searchXStoreModule } from '../js/x-modules/search/store/module.js';
26
- export { cancelFetchAndSaveSearchResponseWire, clearSearchQuery, fetchAndSaveSearchResponseWire, increasePageAppendingResultsWire, resetAppending, resetFromNoResultsWithFilters, resetIsNoResults, resetRequestOnRefinementWire, resetSpellcheckQuery, resetStateForReloadWire, resetStateIfNoRequestWire, saveOriginWire, searchWiring, setRelatedTags, setSearchExtraParams, setSearchExtraParamsFromPreview, setSearchPage, setSearchQuery, setSearchQueryFromPreview, setSearchSelectedFiltersFromHistoryQuery, setSearchSelectedFiltersFromPreview, setSelectedFilters, setSort, setUrlParams } from '../js/x-modules/search/wiring.js';
28
+ export { cancelFetchAndSaveSearchResponseWire, clearSearchQuery, fetchAndSavePartialResultsEnrichmentWire, fetchAndSaveResultsEnrichmentWire, fetchAndSaveSearchResponseWire, increasePageAppendingResultsWire, resetAppending, resetFromNoResultsWithFilters, resetIsNoResults, resetRequestOnRefinementWire, resetSpellcheckQuery, resetStateForReloadWire, resetStateIfNoRequestWire, saveOriginWire, searchWiring, setRelatedTags, setSearchExtraParams, setSearchExtraParamsFromPreview, setSearchPage, setSearchQuery, setSearchQueryFromPreview, setSearchSelectedFiltersFromHistoryQuery, setSearchSelectedFiltersFromPreview, setSelectedFilters, setSort, setUrlParams } from '../js/x-modules/search/wiring.js';
27
29
  export { searchXModule } from '../js/x-modules/search/x-module.js';
@@ -133,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{}, {
133
133
  UserTalked: (payload: string, metadata: WireMetadata) => unknown;
134
134
  FacetsChanged: (payload: import("@empathyco/x-types").Facet[], metadata: WireMetadata) => unknown;
135
135
  PageChanged: (payload: number, metadata: WireMetadata) => unknown;
136
+ PartialResultsChanged: (payload: import("@empathyco/x-types").PartialResult[], metadata: WireMetadata) => unknown;
136
137
  ReloadSearchRequested: (payload: undefined, metadata: WireMetadata) => unknown;
137
138
  ResultsChanged: (payload: import("@empathyco/x-types").Result[], metadata: WireMetadata) => unknown;
138
139
  SearchRequestChanged: (payload: import("..").InternalSearchRequest | null, metadata: WireMetadata) => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
1
+ {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
@@ -1,3 +1,4 @@
1
1
  export * from './directional-focus-navigation.service';
2
+ export * from './results-enrichment.service';
2
3
  export * from './services.types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA;AACtD,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA;AACtD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { Result } from '@empathyco/x-types';
2
+ import type { Store } from 'vuex';
3
+ import type { RootXStoreState } from '../store/index';
4
+ import type { ResultsEnrichmentService } from './services.types';
5
+ /**
6
+ * Default implementation for the {@link ResultsEnrichmentService}.
7
+ *
8
+ * @public
9
+ */
10
+ export declare class DefaultResultsEnrichmentService implements ResultsEnrichmentService {
11
+ /**
12
+ * Global instance of the {@link ResultsEnrichmentService}.
13
+ */
14
+ static instance: ResultsEnrichmentService;
15
+ constructor();
16
+ protected get store(): Store<RootXStoreState>;
17
+ /**
18
+ * Fetches the enrichment results.
19
+ *
20
+ * @param results - The results to fetch the enrichment results for.
21
+ */
22
+ fetchResults(_: Result[]): Promise<any[]>;
23
+ /**
24
+ * Updates the results with the enrichment results. Updates via mutation.
25
+ *
26
+ * @param results - The results to update.
27
+ * @param enrichmentResults - The enrichment results to update the results with.
28
+ */
29
+ updateResults(_: Result[], __: any[]): void;
30
+ }
31
+ //# sourceMappingURL=results-enrichment.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"results-enrichment.service.d.ts","sourceRoot":"","sources":["../../../../src/services/results-enrichment.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAA;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAGhE;;;;GAIG;AACH,qBAAa,+BAAgC,YAAW,wBAAwB;IAC9E;;OAEG;IACH,OAAc,QAAQ,EAAE,wBAAwB,CAAwC;;IAIxF,SAAS,KAAK,KAAK,IAAI,KAAK,CAAC,eAAe,CAAC,CAE5C;IAED;;;;OAIG;IACG,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAI/C;;;;;OAKG;IACH,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CAC5C"}
@@ -1,3 +1,4 @@
1
+ import type { Result } from '@empathyco/x-types';
1
2
  import type { ArrowKey } from '../utils/types';
2
3
  /**
3
4
  * Interface for SpatialNavigation services based on
@@ -89,4 +90,24 @@ export interface Machine<SomeStatus extends string, SomeEvent extends string> {
89
90
  initial: SomeStatus;
90
91
  states: TransitionStates<SomeStatus, SomeEvent>;
91
92
  }
93
+ /**
94
+ * Service to handle the enrichment of the results.
95
+ *
96
+ * @public
97
+ */
98
+ export interface ResultsEnrichmentService {
99
+ /**
100
+ * Fetches the enrichment results.
101
+ *
102
+ * @param results - The results to fetch the enrichment results for.
103
+ */
104
+ fetchResults: (results: Result[]) => Promise<any[]>;
105
+ /**
106
+ * Updates the results with the enrichment results. Updates via mutation.
107
+ *
108
+ * @param results - The results to update.
109
+ * @param enrichmentResults - The enrichment results to update the results with.
110
+ */
111
+ updateResults: (results: Result[], enrichmentResults: any[]) => void;
112
+ }
92
113
  //# sourceMappingURL=services.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.types.d.ts","sourceRoot":"","sources":["../../../../src/services/services.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,KAAK,WAAW,CAAA;CACjD;AAED;;;;GAIG;AACH,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAEnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,gBAAgB,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,IAAI;KACjF,GAAG,IAAI,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;CAC5D,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IAC1E,OAAO,EAAE,UAAU,CAAA;IACnB,MAAM,EAAE,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;CAChD"}
1
+ {"version":3,"file":"services.types.d.ts","sourceRoot":"","sources":["../../../../src/services/services.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,KAAK,WAAW,CAAA;CACjD;AAED;;;;GAIG;AACH,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAEnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,gBAAgB,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,IAAI;KACjF,GAAG,IAAI,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;CAC5D,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IAC1E,OAAO,EAAE,UAAU,CAAA;IACnB,MAAM,EAAE,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;CAChD;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IAEnD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;CACrE"}
@@ -158,6 +158,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
158
158
  UserTalked?: string | undefined;
159
159
  FacetsChanged?: import("@empathyco/x-types").Facet[] | undefined;
160
160
  PageChanged?: number | undefined;
161
+ PartialResultsChanged?: import("@empathyco/x-types").PartialResult[] | undefined;
161
162
  ReloadSearchRequested?: void | undefined;
162
163
  ResultsChanged?: import("@empathyco/x-types").Result[] | undefined;
163
164
  SearchRequestChanged?: import("../../../search").InternalSearchRequest | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
1
+ {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
@@ -148,6 +148,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
148
148
  UserTalked?: string | undefined;
149
149
  FacetsChanged?: import("@empathyco/x-types").Facet[] | undefined;
150
150
  PageChanged?: number | undefined;
151
+ PartialResultsChanged?: import("@empathyco/x-types").PartialResult[] | undefined;
151
152
  ReloadSearchRequested?: void | undefined;
152
153
  ResultsChanged?: import("@empathyco/x-types").Result[] | undefined;
153
154
  SearchRequestChanged?: import("../../../search").InternalSearchRequest | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
1
+ {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
@@ -0,0 +1,17 @@
1
+ import type { Result } from '@empathyco/x-types';
2
+ import type { RecommendationsActionContext } from '../types';
3
+ /**
4
+ * Default implementation for {@link RecommendationsActions.fetchAndSaveRecommendationsEnrichment}
5
+ * action.
6
+ *
7
+ * @public
8
+ */
9
+ export declare const fetchAndSaveRecommendationsEnrichment: (context: RecommendationsActionContext, request: Result[]) => void | Promise<void>;
10
+ /**
11
+ * Default implementation for {@link RecommendationsActions.cancelFetchAndSaveRecommendationsEnrichment}
12
+ * action.
13
+ *
14
+ * @public
15
+ */
16
+ export declare const cancelFetchAndSaveRecommendationsEnrichment: () => void;
17
+ //# sourceMappingURL=fetch-and-save-recommendations-enrichment.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-and-save-recommendations-enrichment.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/recommendations/store/actions/fetch-and-save-recommendations-enrichment.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAmB5D;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,oFAAe,CAAA;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,2CAA2C,YAAiB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/recommendations/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAW1D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,2BAqCzC,CAAA"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/recommendations/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAgB1D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,2BA6CzC,CAAA"}
@@ -53,6 +53,12 @@ export interface RecommendationsMutations extends StatusMutations, ConfigMutatio
53
53
  * and the properties to modify.
54
54
  */
55
55
  updateRecommendation: (recommendation: Partial<Result> & Pick<Result, 'id'>) => void;
56
+ /**
57
+ * Updates the recommendations with the enrichment results.
58
+ *
59
+ * @param enrichmentResults - The enrichment results.
60
+ */
61
+ updateRecommendationsFromEnrichment: (enrichmentResults: any[]) => void;
56
62
  }
57
63
  /**
58
64
  * Recommendations store actions.
@@ -75,6 +81,17 @@ export interface RecommendationsActions {
75
81
  * @returns A new list of results.
76
82
  */
77
83
  fetchRecommendations: (request: RecommendationsRequest | null) => Result[];
84
+ /**
85
+ * Requests and saves the enrichment results for the recommendations.
86
+ *
87
+ * @param results - The recommendations.
88
+ */
89
+ fetchAndSaveRecommendationsEnrichment: (results: Result[]) => void;
90
+ /**
91
+ * Cancels / interrupt {@link RecommendationsActions.fetchAndSaveRecommendationsEnrichment} synchronous
92
+ * promise.
93
+ */
94
+ cancelFetchAndSaveRecommendationsEnrichment: () => void;
78
95
  }
79
96
  /**
80
97
  * Recommendations type safe store module.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/recommendations/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAE5D;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,sDAAsD;IACtD,MAAM,EAAE,qBAAqB,CAAA;IAC7B,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,8CAA8C;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,OAAO,EAAE,sBAAsB,CAAA;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,wBACf,SAAQ,eAAe,EAAE,eAAe,CAAC,oBAAoB,CAAC;IAC9D;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACvD;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAChD;;;;;OAKG;IACH,oBAAoB,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,IAAI,CAAA;CACrF;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,iCAAiC,EAAE,MAAM,IAAI,CAAA;IAC7C;;OAEG;IACH,2BAA2B,EAAE,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7E;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,KAAK,MAAM,EAAE,CAAA;CAC3E;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,YAAY,CACpD,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,CACvB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,cAAc,CACvD,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,CACvB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/recommendations/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAE5D;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,sDAAsD;IACtD,MAAM,EAAE,qBAAqB,CAAA;IAC7B,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,8CAA8C;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,OAAO,EAAE,sBAAsB,CAAA;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,wBACf,SAAQ,eAAe,EAAE,eAAe,CAAC,oBAAoB,CAAC;IAC9D;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACvD;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAChD;;;;;OAKG;IACH,oBAAoB,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,IAAI,CAAA;IACpF;;;;OAIG;IACH,mCAAmC,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;CACxE;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,iCAAiC,EAAE,MAAM,IAAI,CAAA;IAC7C;;OAEG;IACH,2BAA2B,EAAE,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7E;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,KAAK,MAAM,EAAE,CAAA;IAC1E;;;;OAIG;IACH,qCAAqC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAClE;;;OAGG;IACH,2CAA2C,EAAE,MAAM,IAAI,CAAA;CACxD;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,YAAY,CACpD,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,CACvB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,cAAc,CACvD,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,CACvB,CAAA"}
@@ -10,6 +10,9 @@ export declare const setRecommendationsExtraParams: import("../..").Wire<import(
10
10
  * @internal
11
11
  */
12
12
  export declare const recommendationsWiring: {
13
+ RecommendationsChanged: {
14
+ fetchAndSaveRecommendationsEnrichmentWire: import("../..").Wire<import("@empathyco/x-types").Result[]>;
15
+ };
13
16
  RecommendationsRequestUpdated: {
14
17
  fetchAndSaveRecommendations: import("../..").Wire<import("@empathyco/x-types").RecommendationsRequest | null>;
15
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/recommendations/wiring.ts"],"names":[],"mappings":"AA6BA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,wEAA0B,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;CAQhC,CAAA"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/recommendations/wiring.ts"],"names":[],"mappings":"AAsCA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,wEAA0B,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;CAWhC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Banner, Facet, Promoted, Redirection, Result, Sort, TaggingRequest } from '@empathyco/x-types';
1
+ import type { Banner, Facet, PartialResult, Promoted, Redirection, Result, Sort, TaggingRequest } from '@empathyco/x-types';
2
2
  import type { InternalSearchRequest, InternalSearchResponse } from './types';
3
3
  /**
4
4
  * Dictionary of the events of Search XModule, where each key is the event name, and the value is
@@ -17,6 +17,11 @@ export interface SearchXEvents {
17
17
  * Payload: The new page number.
18
18
  */
19
19
  PageChanged: number;
20
+ /**
21
+ * Partial results have changed.
22
+ * Payload: The new {@link @empathyco/x-types#PartialResult | partial results}.
23
+ */
24
+ PartialResultsChanged: PartialResult[];
20
25
  /**
21
26
  * Reload the current search has been requested.
22
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAE5E;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,aAAa,EAAE,KAAK,EAAE,CAAA;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,qBAAqB,EAAE,IAAI,CAAA;IAC3B;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB;;;;OAIG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAClD;;;;;;;;OAQG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAClD;;;OAGG;IACH,qBAAqB,EAAE,sBAAsB,CAAA;IAC7C;;;OAGG;IACH,oBAAoB,EAAE,cAAc,CAAA;IACpC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,gBAAgB,EAAE,IAAI,CAAA;IACtB;;;;;;OAMG;IACH,oBAAoB,EAAE,IAAI,CAAA;IAC1B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAA;IAC/B;;OAEG;IACH,yBAAyB,EAAE,IAAI,CAAA;IAC/B;;;OAGG;IACH,uBAAuB,EAAE,WAAW,CAAA;IACpC;;;OAGG;IACH,oBAAoB,EAAE,QAAQ,CAAA;IAC9B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,4BAA4B,EAAE,IAAI,CAAA;IAClC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;CAC1B"}
1
+ {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EACL,aAAa,EACb,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAE5E;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,aAAa,EAAE,KAAK,EAAE,CAAA;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,qBAAqB,EAAE,aAAa,EAAE,CAAA;IACtC;;OAEG;IACH,qBAAqB,EAAE,IAAI,CAAA;IAC3B;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB;;;;OAIG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAClD;;;;;;;;OAQG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAClD;;;OAGG;IACH,qBAAqB,EAAE,sBAAsB,CAAA;IAC7C;;;OAGG;IACH,oBAAoB,EAAE,cAAc,CAAA;IACpC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,gBAAgB,EAAE,IAAI,CAAA;IACtB;;;;;;OAMG;IACH,oBAAoB,EAAE,IAAI,CAAA;IAC1B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAA;IAC/B;;OAEG;IACH,yBAAyB,EAAE,IAAI,CAAA;IAC/B;;;OAGG;IACH,uBAAuB,EAAE,WAAW,CAAA;IACpC;;;OAGG;IACH,oBAAoB,EAAE,QAAQ,CAAA;IAC9B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,4BAA4B,EAAE,IAAI,CAAA;IAClC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;CAC1B"}
@@ -0,0 +1,17 @@
1
+ import type { PartialResult } from '@empathyco/x-types';
2
+ import type { SearchActionContext } from '../types';
3
+ /**
4
+ * Default implementation for {@link SearchActions.fetchAndSavePartialResultsEnrichment}
5
+ * action.
6
+ *
7
+ * @public
8
+ */
9
+ export declare const fetchAndSavePartialResultsEnrichment: (context: SearchActionContext, request: PartialResult[]) => void | Promise<void>;
10
+ /**
11
+ * Default implementation for {@link SearchActions.cancelFetchAndSavePartialResultsEnrichment}
12
+ * action.
13
+ *
14
+ * @public
15
+ */
16
+ export declare const cancelFetchAndSavePartialResultsEnrichment: () => void;
17
+ //# sourceMappingURL=fetch-and-save-partial-results-enrichment.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-and-save-partial-results-enrichment.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAwBnD;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,kFAAe,CAAA;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,0CAA0C,YAAiB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import type { Result } from '@empathyco/x-types';
2
+ import type { SearchActionContext } from '../types';
3
+ /**
4
+ * Default implementation for {@link SearchActions.fetchAndSaveResultsEnrichment}
5
+ * action.
6
+ *
7
+ * @public
8
+ */
9
+ export declare const fetchAndSaveResultsEnrichment: (context: SearchActionContext, request: Result[]) => void | Promise<void>;
10
+ /**
11
+ * Default implementation for {@link SearchActions.cancelFetchAndSaveResultsEnrichment}
12
+ * action.
13
+ *
14
+ * @public
15
+ */
16
+ export declare const cancelFetchAndSaveResultsEnrichment: () => void;
17
+ //# sourceMappingURL=fetch-and-save-results-enrichment.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-and-save-results-enrichment.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/search/store/actions/fetch-and-save-results-enrichment.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAiBnD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,2EAAe,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,YAAiB,CAAA"}
@@ -1,3 +1,5 @@
1
+ export * from './fetch-and-save-partial-results-enrichment.action';
2
+ export * from './fetch-and-save-results-enrichment.action';
1
3
  export * from './fetch-and-save-search-response.action';
2
4
  export * from './fetch-search-response.action';
3
5
  export * from './increase-page-apending-results.action';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/search/store/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA;AACvD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yCAAyC,CAAA;AACvD,cAAc,sCAAsC,CAAA;AACpD,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACrE,cAAc,+BAA+B,CAAA;AAC7C,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/search/store/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oDAAoD,CAAA;AAClE,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yCAAyC,CAAA;AACvD,cAAc,sCAAsC,CAAA;AACpD,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACrE,cAAc,+BAA+B,CAAA;AAC7C,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -9,6 +9,7 @@ export declare const searchEmitters: {
9
9
  filter(newValue: import("@empathyco/x-types").Facet[], oldValue: import("@empathyco/x-types").Facet[]): boolean;
10
10
  };
11
11
  PageChanged: (state: import("./types").SearchState) => number;
12
+ PartialResultsChanged: (state: import("./types").SearchState) => import("@empathyco/x-types").PartialResult[];
12
13
  ResultsChanged: (state: import("./types").SearchState) => import("@empathyco/x-types").Result[];
13
14
  SearchRequestChanged: (_: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => import("..").InternalSearchRequest | null;
14
15
  SearchRequestUpdated: (_: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => import("..").InternalSearchRequest | null;
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/emitters.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;gHAGK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCrC,CAAA"}
1
+ {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/emitters.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;gHAGK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAoBjD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBA+GhC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;WAwBd,KAAK;EAErB"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAuBjD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBA8HhC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;WAwBd,KAAK;EAErB"}
@@ -220,6 +220,18 @@ export interface SearchMutations extends StatusMutations, QueryMutations, Config
220
220
  * @param result - A result containing at least an id, and the properties to modify.
221
221
  */
222
222
  updateResult: (result: Partial<Result> & Pick<Result, 'id'>) => void;
223
+ /**
224
+ * Updates the results with the enrichment results.
225
+ *
226
+ * @param enrichmentResults - The enrichment results.
227
+ */
228
+ updateResultsFromEnrichment: (enrichmentResults: any[]) => void;
229
+ /**
230
+ * Updates the partial results with the enrichment results.
231
+ *
232
+ * @param enrichmentResults - The enrichment results.
233
+ */
234
+ updatePartialResultsFromEnrichment: (enrichmentResults: any[]) => void;
223
235
  }
224
236
  /**
225
237
  * Search store actions.
@@ -247,6 +259,18 @@ export interface SearchActions {
247
259
  * @returns The new search response.
248
260
  */
249
261
  fetchSearchResponse: (request: SearchRequest) => SearchResponse;
262
+ /**
263
+ * Requests and stores the enrichment results for the results.
264
+ *
265
+ * @param results - The results.
266
+ */
267
+ fetchAndSaveResultsEnrichment: (results: Result[]) => void;
268
+ /**
269
+ * Requests and stores the enrichment results for the partial results.
270
+ *
271
+ * @param partialResults - The partial results.
272
+ */
273
+ fetchAndSavePartialResultsEnrichment: (partialResults: PartialResult[]) => void;
250
274
  /**
251
275
  * Checks if there are more pages of results to load. If there are, then increases the page
252
276
  * number in state and set to `true` the {@link SearchState.isAppendResults} flag.