@studyportals/search-api-interface 1.2.3-22 → 1.2.3-24

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
@@ -12,6 +12,6 @@ import { IProgrammeSearchResponse } from "./src/programmes/IProgrammeSearchRespo
12
12
  import { ProgrammeSearchFilters } from "./src/programmes/ProgrammeSearchFilters";
13
13
  import { ProgrammeSearchInput } from "./src/programmes/ProgrammeSearchInput";
14
14
  import { SearchApiProgrammeClient } from "./src/programmes/SearchApiProgrammeClient";
15
- import { FacetResponseType } from "./src/facets/FacetResponseType";
15
+ import { FacetResponseType, FacetResultType, FacetValues } from "./src/facets/FacetResponseType";
16
16
  import { facetToFieldMap } from "./src/facets/FacetToFieldMap";
17
- export { SearchApiOrganisationClient, IOrganisationSearchResponse, IOrganisationSearchFilters, OrganisationSearchFilters, SearchApiProgrammeClient, IProgrammeSearchResponse, IProgrammeSearchFilters, ProgrammeSearchFilters, OrganisationSearchInput, ProgrammeSearchInput, IProgrammeResult, DegreeTypeEnum, DeliveryMethodEnum, HitsTotalRelation, FacetResponseType, facetToFieldMap };
17
+ export { SearchApiOrganisationClient, IOrganisationSearchResponse, IOrganisationSearchFilters, OrganisationSearchFilters, SearchApiProgrammeClient, IProgrammeSearchResponse, IProgrammeSearchFilters, ProgrammeSearchFilters, OrganisationSearchInput, ProgrammeSearchInput, IProgrammeResult, DegreeTypeEnum, DeliveryMethodEnum, HitsTotalRelation, FacetResponseType, FacetResultType, FacetValues, facetToFieldMap };
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAkC3D,kGAlCQ,qCAAiB,OAkCR;AAjClB,uEAAoE;AA+BnE,+FA/BQ,+BAAc,OA+BR;AA9Bf,+EAA4E;AA+B3E,mGA/BQ,uCAAkB,OA+BR;AA9BnB,+FAA4F;AAiB3F,2GAjBQ,uDAA0B,OAiBR;AAf3B,6FAA0F;AAgBzF,0GAhBQ,qDAAyB,OAgBR;AAd1B,iGAA8F;AAW7F,4GAXQ,yDAA2B,OAWR;AAV5B,wEAAqE;AAsBpE,iGAtBQ,mCAAgB,OAsBR;AArBjB,sFAAmF;AAgBlF,wGAhBQ,iDAAuB,OAgBR;AAdxB,oFAAiF;AAehF,uGAfQ,+CAAsB,OAeR;AAbvB,wFAAqF;AAUpF,yGAVQ,mDAAwB,OAUR;AARzB,kEAA+D;AAsB9D,gGAtBQ,iCAAe,OAsBR"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAkC3D,kGAlCQ,qCAAiB,OAkCR;AAjClB,uEAAoE;AA+BnE,+FA/BQ,+BAAc,OA+BR;AA9Bf,+EAA4E;AA+B3E,mGA/BQ,uCAAkB,OA+BR;AA9BnB,+FAA4F;AAiB3F,2GAjBQ,uDAA0B,OAiBR;AAf3B,6FAA0F;AAgBzF,0GAhBQ,qDAAyB,OAgBR;AAd1B,iGAA8F;AAW7F,4GAXQ,yDAA2B,OAWR;AAV5B,wEAAqE;AAsBpE,iGAtBQ,mCAAgB,OAsBR;AArBjB,sFAAmF;AAgBlF,wGAhBQ,iDAAuB,OAgBR;AAdxB,oFAAiF;AAehF,uGAfQ,+CAAsB,OAeR;AAbvB,wFAAqF;AAUpF,yGAVQ,mDAAwB,OAUR;AARzB,kEAA+D;AAwB9D,gGAxBQ,iCAAe,OAwBR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/search-api-interface",
3
- "version": "1.2.3-22",
3
+ "version": "1.2.3-24",
4
4
  "description": "Typescript library containing resources that facilitate integration with SearchApi",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,14 @@
1
- export type FacetResponseType = {
1
+ type FacetResultType = {
2
2
  filter: string;
3
3
  count: number;
4
4
  value: string;
5
5
  };
6
+ type FacetResponseType = {
7
+ filter: string;
8
+ values: FacetValues[];
9
+ };
10
+ type FacetValues = {
11
+ count: number;
12
+ value: string;
13
+ };
14
+ export { FacetResultType, FacetResponseType, FacetValues };