@studyportals/fawkes 8.2.4-13 → 8.2.4-15

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.
@@ -1,9 +1,10 @@
1
1
  export declare enum FilterCombinations {
2
- CITY = "city",
3
2
  AREA = "area",
4
3
  AREA_ATTENDANCE = "areaAttendance",
5
4
  AREA_DISCIPLINE = "areaDiscipline",
6
5
  COUNTRY = "country",
6
+ COUNTRY_CITY = "countryCity",
7
+ COUNTRY_AREA_CITY = "countryAreaCity",
7
8
  DEGREE = "degree",
8
9
  DURATION = "duration",
9
10
  FORMAT = "format",
@@ -1,10 +1,11 @@
1
1
  export var FilterCombinations;
2
2
  (function (FilterCombinations) {
3
- FilterCombinations["CITY"] = "city";
4
3
  FilterCombinations["AREA"] = "area";
5
4
  FilterCombinations["AREA_ATTENDANCE"] = "areaAttendance";
6
5
  FilterCombinations["AREA_DISCIPLINE"] = "areaDiscipline";
7
6
  FilterCombinations["COUNTRY"] = "country";
7
+ FilterCombinations["COUNTRY_CITY"] = "countryCity";
8
+ FilterCombinations["COUNTRY_AREA_CITY"] = "countryAreaCity";
8
9
  FilterCombinations["DEGREE"] = "degree";
9
10
  FilterCombinations["DURATION"] = "duration";
10
11
  FilterCombinations["FORMAT"] = "format";
@@ -20,6 +20,8 @@ export class CountryAreaCity extends OrganisationsSeoIndexabilityPolicy {
20
20
  .getInstance(this.dependencies.searchApiClient)
21
21
  .getFragments();
22
22
  const paths = [];
23
+ console.warn(`Total city fragments fetched: ${cityFragments.length}`);
24
+ console.warn('Fetched city fragments for CountryAreaCity policy:', JSON.stringify(cityFragments));
23
25
  const filteredFragmentsForCountryAreaCity = cityFragments.filter(city => city.areaId !== null && city.areaId !== undefined);
24
26
  console.warn(`Filtered down to ${filteredFragmentsForCountryAreaCity.length} city fragments for CountryAreaCity policy.`);
25
27
  console.warn('Filtered city fragments for CountryAreaCity policy:', JSON.stringify(filteredFragmentsForCountryAreaCity));
@@ -43,6 +45,6 @@ export class CountryAreaCity extends OrganisationsSeoIndexabilityPolicy {
43
45
  return paths;
44
46
  }
45
47
  get filterCombination() {
46
- return FilterCombinations.CITY;
48
+ return FilterCombinations.COUNTRY_AREA_CITY;
47
49
  }
48
50
  }
@@ -19,6 +19,8 @@ export class CountryCity extends OrganisationsSeoIndexabilityPolicy {
19
19
  .getInstance(this.dependencies.searchApiClient)
20
20
  .getFragments();
21
21
  const paths = [];
22
+ console.warn(`Total city fragments fetched: ${cityFragments.length}`);
23
+ console.warn('Fetched city fragments for CountryCity policy:', JSON.stringify(cityFragments));
22
24
  const filteredFragmentsForCountryCity = cityFragments.filter(city => city.areaId === null || city.areaId === undefined);
23
25
  console.warn(`Filtered down to ${filteredFragmentsForCountryCity.length} city fragments for CountryCity policy.`);
24
26
  console.warn('Filtered city fragments for CountryCity policy:', JSON.stringify(filteredFragmentsForCountryCity));
@@ -37,6 +39,6 @@ export class CountryCity extends OrganisationsSeoIndexabilityPolicy {
37
39
  return paths;
38
40
  }
39
41
  get filterCombination() {
40
- return FilterCombinations.CITY;
42
+ return FilterCombinations.COUNTRY_CITY;
41
43
  }
42
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.2.4-13",
3
+ "version": "8.2.4-15",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"