@studyportals/search-api-interface 2.2.5-0 → 2.2.5-2

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/index.d.ts CHANGED
@@ -16,4 +16,5 @@ import { FacetResponseType, FacetValues } from "./src/facets/FacetResponseType";
16
16
  import { ProgrammeSortType } from "./src/programmes/ProgrammeSortType";
17
17
  import { TextSearchAlgorithmType } from "./src/TextSearchAlgorithmType";
18
18
  import { ProgrammeFilterType } from "./src/programmes/ProgrammeFilterType";
19
- export { SearchApiOrganisationClient, IOrganisationSearchResponse, IOrganisationSearchFilters, OrganisationSearchFilters, SearchApiProgrammeClient, IProgrammeSearchResponse, IProgrammeSearchFilters, ProgrammeSearchFilters, OrganisationSearchInput, ProgrammeSearchInput, IProgrammeResult, DegreeTypeEnum, DeliveryMethodEnum, HitsTotalRelation, ProgrammeSortType, FacetResponseType, FacetValues, TextSearchAlgorithmType, ProgrammeFilterType };
19
+ import { ISuggestionResult } from "./src/suggestions/ISuggestionResult";
20
+ export { SearchApiOrganisationClient, IOrganisationSearchResponse, IOrganisationSearchFilters, OrganisationSearchFilters, SearchApiProgrammeClient, IProgrammeSearchResponse, IProgrammeSearchFilters, ProgrammeSearchFilters, OrganisationSearchInput, ProgrammeSearchInput, IProgrammeResult, DegreeTypeEnum, DeliveryMethodEnum, HitsTotalRelation, ProgrammeSortType, FacetResponseType, FacetValues, TextSearchAlgorithmType, ProgrammeFilterType, ISuggestionResult };
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAoC3D,kGApCQ,qCAAiB,OAoCR;AAnClB,uEAAoE;AAiCnE,+FAjCQ,+BAAc,OAiCR;AAhCf,+EAA4E;AAiC3E,mGAjCQ,uCAAkB,OAiCR;AAhCnB,+FAA4F;AAmB3F,2GAnBQ,uDAA0B,OAmBR;AAjB3B,6FAA0F;AAkBzF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4
4
  "description": "Typescript library containing resources that facilitate integration with SearchApi",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,10 @@
1
1
  import { FacetResponseType } from "../facets/FacetResponseType";
2
2
  import { HitsTotalRelation } from "../HitsTotalRelation";
3
+ import { ISuggestionResult } from "../suggestions/ISuggestionResult";
3
4
  export interface IProgrammeSearchResponse<T> {
4
5
  readonly programmes: readonly T[];
5
6
  readonly hitsTotal: number;
6
7
  readonly hitsTotalRelation: HitsTotalRelation;
7
8
  readonly facets?: readonly FacetResponseType[];
9
+ readonly suggestions?: readonly ISuggestionResult[];
8
10
  }
@@ -0,0 +1,4 @@
1
+ export interface ISuggestionResult {
2
+ suggestion: string;
3
+ amount_of_programmes: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISuggestionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISuggestionResult.js","sourceRoot":"","sources":["../../../src/suggestions/ISuggestionResult.ts"],"names":[],"mappings":""}