@studyportals/search-api-interface 1.2.3-18 → 1.2.3-20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/search-api-interface",
3
- "version": "1.2.3-18",
3
+ "version": "1.2.3-20",
4
4
  "description": "Typescript library containing resources that facilitate integration with SearchApi",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,6 +26,6 @@
26
26
  "typescript-transform-paths": "^3.4.6"
27
27
  },
28
28
  "dependencies": {
29
- "@studyportals/search-filters": "4.5.1-2"
29
+ "@studyportals/search-filters": "4.5.1-3"
30
30
  }
31
31
  }
@@ -0,0 +1 @@
1
+ export declare const FacetToFilterMap: Map<any, any>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FacetToFilterMap = void 0;
4
+ const facetToFilterMap = new Map();
5
+ facetToFilterMap.set("attendances", "methods");
6
+ facetToFilterMap.set("educationalLevels", "level");
7
+ facetToFilterMap.set("disciplines", "disciplines");
8
+ facetToFilterMap.set("educationalForms", "educational_forms");
9
+ facetToFilterMap.set("countryIsoCodes", "countryIsoCodes");
10
+ facetToFilterMap.set("areaIds", "areas");
11
+ facetToFilterMap.set("regionIds", "regions");
12
+ facetToFilterMap.set("degreeTypes", "degree");
13
+ facetToFilterMap.set("organisationIds", "organisationIds");
14
+ facetToFilterMap.set("specialProgrammes", "special_study");
15
+ exports.FacetToFilterMap = facetToFilterMap;
16
+ //# sourceMappingURL=FacetToFilterMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FacetToFilterMap.js","sourceRoot":"","sources":["../../../src/facets/FacetToFilterMap.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAE,CAAC;AAEnC,gBAAgB,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;AAC/C,gBAAgB,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AACnD,gBAAgB,CAAC,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;AACnD,gBAAgB,CAAC,GAAG,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;AAC9D,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC;AAC3D,gBAAgB,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACzC,gBAAgB,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC7C,gBAAgB,CAAC,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AAC9C,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC;AAC3D,gBAAgB,CAAC,GAAG,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAE9C,QAAA,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { FacetResponseType } from "../facets/FacetResponseType";
2
+ import { HitsTotalRelation } from "../HitsTotalRelation";
2
3
  export interface IProgrammeSearchResponse<T> {
3
4
  readonly programmes: readonly T[];
4
5
  readonly hitsTotal: number;
5
- readonly hitsTotalRelation: "more than" | "exactly";
6
+ readonly hitsTotalRelation: HitsTotalRelation;
6
7
  readonly aggregations?: readonly FacetResponseType[];
7
8
  }